Computer Science - Object Oriented Programming Using C++

21.
The statement double total = 0.0; performs _____
assignment
initialization
rationalization
polymorphism
Answer: Option
Explanation:
No answer description is available. Let's discuss.

22.
The two parts of a function are the
header and footer
declarations and statements
legs and feet
header and body
Answer: Option
Explanation:
No answer description is available. Let's discuss.

23.
The general principle underlying object-oriented error handling is that a called function should __________
neither check for, nor handle errors
check for errors but not be required to handle any detected
handle errors, but not check for them
both check for and handle errors
Answer: Option
Explanation:
No answer description is available. Let's discuss.

24.
Which of the following is false?
A void function's header begins with the keyword void
A value-returning function's header begins with a data type, which represents the type of data the function will return
Assuming displayAge is the name of a void function, displayAge(); is a both logically and syntactically valid C++ statement
Assuming calcNewPrice is the name of a value-returning function, calcNewPriceO; is a both logically and syntactically valid C++ statement
Both void and value-returning functions can receive arguments.
Answer: Option
Explanation:
No answer description is available. Let's discuss.

25.
Reference variables and const class member
must be assigned values in any derived class
must never be initialized in a base class
must be initialized, rather than assigned values
must not exit if a class is to be a base class
Answer: Option
Explanation:
No answer description is available. Let's discuss.