Exercise: Object Oriented Programming Using Cpp

Questions for: Object Oriented Programming Using Cpp

The actual arguments cannot he
A:
a constant or a variable
B:
of a different type from the corresponding formal arguments
C:
other functions
D:
expressions
Answer: B
No answer description is available. Let's discuss.
Reference variables and const class member
A:
must be assigned values in any derived class
B:
must never be initialized in a base class
C:
must be initialized, rather than assigned values
D:
must not exit if a class is to be a base class
Answer: C
No answer description is available. Let's discuss.
The general principle underlying object-oriented error handling is that a called function should __________
A:
neither check for, nor handle errors
B:
check for errors but not be required to handle any detected
C:
handle errors, but not check for them
D:
both check for and handle errors
Answer: B
No answer description is available. Let's discuss.
The two parts of a function are the
A:
header and footer
B:
declarations and statements
C:
legs and feet
D:
header and body
Answer: D
No answer description is available. Let's discuss.
The statement double total = 0.0; performs _____
A:
assignment
B:
initialization
C:
rationalization
D:
polymorphism
Answer: B
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz