Computer Science - Object Oriented Programming Using C++

26.
Which of the following statements uses the computer's clock to initialize the random number generator?
srand(time);
srand(time(NULL));
time(srand);
time(srand(NULL));
Answer: Option
Explanation:
No answer description is available. Let's discuss.

27.
A static data member is given a value
within the class definition
outside the class definition
when the program is executed
never
Answer: Option
Explanation:
No answer description is available. Let's discuss.

28.
You must provide a constructor for a derived class
always
if the base class constructor required arguments
if the base class constructor does not required arguments
never
Answer: Option
Explanation:
No answer description is available. Let's discuss.

29.
If you want to override constructor default values for an object you are instantiating, you must also override
all other parameters to that constructor
all parameters to the left of that value
all parameters to the right of that value
no other parameters to that constructor
Answer: Option
Explanation:
No answer description is available. Let's discuss.

30.
To use one of the C++ built-in mathematical functions, you must include the _____ header file in your program
calculation.h
compute.h
expression.h
math.h
mathematical.h
Answer: Option
Explanation:
No answer description is available. Let's discuss.