Exercise: Object Oriented Programming Using Cpp

Questions for: Object Oriented Programming Using Cpp

Using a statement at the wrong time or with an inappropriate object creates a
A:
logical error
B:
syntax error
C:
compiler error
D:
language error
Answer: A
No answer description is available. Let's discuss.
When an object-oriented program detects an error within a function, the function _________
A:
throws an exception
B:
throws a fit
C:
catches a message
D:
catches an exception
Answer: A
No answer description is available. Let's discuss.
The return type you code for all constructors is _____
A:
void
B:
the class type
C:
the same type as the first data member defined in the class
D:
no type
Answer: D
No answer description is available. Let's discuss.
A fundamental type such as int or double is a _____
A:
programmer-defined type
B:
complex type
C:
nonscalar type
D:
scalar type
Answer: D
No answer description is available. Let's discuss.
The compiler converts your C++ instructions into _____
A:
edited code
B:
object code
C:
source code
D:
translated code
Answer: B
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz