Exercise: Object Oriented Programming Using Cpp

Questions for: Object Oriented Programming Using Cpp

The comma operator (,) is used to
A:
permit two different expressions to appear in situations where only one expression would ordinarily be used
B:
terminate loops or to exit from switch
C:
alter the normal sequence of program execution by transferring control to some other part of the program
D:
carry out a logical test and then take one of two possible actions, depending upon the outcome of the test
Answer: A
No answer description is available. Let's discuss.
If an exception is thrown and no catch block matches the type of the thrown parameter, then _____
A:
the program terminates
B:
the first catch block is executed
C:
the last catch block is executed
D:
the program proceeds with the code following the catch blocks
Answer: A
No answer description is available. Let's discuss.
The return type for all destructors is
A:
the class
B:
void
C:
the same as the first data in the class
D:
None
Answer: D
No answer description is available. Let's discuss.
Modules in C++ programs are
A:
functions
B:
procedures
C:
subroutines
D:
miniprograms
Answer: A
No answer description is available. Let's discuss.
The extraction operator >> is a(n) _____
A:
overloaded function
B:
C++ class
C:
C++ object
D:
static reference variables
Answer: A
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz