Exercise: Object Oriented Programming Using Cpp

Questions for: Object Oriented Programming Using Cpp

The statement i*=3 is equivalent to
A:
i = 3*
B:
i = 3
C:
i* = 3
D:
i = i * 3
Answer: D
No answer description is available. Let's discuss.
It is sometimes useful to specify a class from which no objects will ever be created
A:
True
B:
False
C:
D:
Answer: A
No answer description is available. Let's discuss.
You construct a class in two sections, known as the _____
A:
header and body
B:
type and parameters
C:
declaration and implementation
D:
pointer and variable
Answer: C
No answer description is available. Let's discuss.
An exception specification begins with the keyword _____
A:
exception
B:
try
C:
throw
D:
catch
Answer: C
No answer description is available. Let's discuss.
Catch blocks must _____
A:
appear in every object-oriented program
B:
appear within try blocks
C:
appear immediately after throw statements
D:
appear immediately after try blocks
Answer: D
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz