Answer:
Following is attached solution to each part. I hope it will help you!
Explanation:
Answer:
Explanation:
The following code is written in Python and it is a very simple function/program that takes in an array of strings as a parameter called names. This array is then passed the built-in sort function which automatically sorts it in ascending alphabetical order. Finally, the print method is called on the names array to print all of its elements out.
def sort_strings(names):
names.sort()
print(names)
Answer:
Option A) Demand for CDs has decreased, causing equilibrium price and quantity to decrease.
is the correct answer.
Explanation:
- File-sharing is a common practice nowadays. It helps us by providing access to different files (audio , video, images, documents) to others in a faster way.
- A wide range of files are shared daily by using different means of file-sharing including computer networks and peer-to-peer networking.
- Formerly, the data was shared using CDs but now this system has been replaced with the advent of internet.
- Usage of CDs is dropped drastically and hence their demand is decreased.
- So now the prices of CDs are not in equilibrium and their quantity is also decreased.
i hope it will help you!
Answer:
scope
Explanation:
Destructor is a member function and it call automatically when the class object goes out of scope.
Out of scope means, the program exit, function end etc.
Destructor name must be same as class name and it has no return type.
syntax:
~class_name() { };
For example:
class xyz{
xyz(){
print(constructor);
}
~xyz(){
print(destructor);
}
}
int main(){
xyz num;
}//end program
when the object is create the constructor will called and when the program end destructor will call automatically.