Computer Science - Object Oriented Programming Using C++

6.
The return type you code for all constructors is _____
void
the class type
the same type as the first data member defined in the class
no type
Answer: Option
Explanation:
No answer description is available. Let's discuss.

7.
When an object-oriented program detects an error within a function, the function _________
throws an exception
throws a fit
catches a message
catches an exception
Answer: Option
Explanation:
No answer description is available. Let's discuss.

8.
Using a statement at the wrong time or with an inappropriate object creates a
logical error
syntax error
compiler error
language error
Answer: Option
Explanation:
No answer description is available. Let's discuss.

9.
When you create a derived class and instantiate an object _____
the parent class object must be constructed first
the child class object must be constructed first
the parent class object must not be constructed
the child class object must not be constructed
Answer: Option
Explanation:
No answer description is available. Let's discuss.

10.
Evaluate the following expression: 4 >6 || 10 < 2 * 6
True
False
Answer: Option
Explanation:
No answer description is available. Let's discuss.