Exercise: Object Oriented Programming Using Cpp

Questions for: Object Oriented Programming Using Cpp

The 'continue' statement 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 a switch
C:
alter the normal sequence of program execution by transferring control to some other part of the program
D:
All of the above
Answer: E
No answer description is available. Let's discuss.
The weakest form of cohesion is
A:
coincidental
B:
functional
C:
logical
D:
communicational
Answer: A
No answer description is available. Let's discuss.
If a class object is thrown with a throw statement, then a subsequent catch block has a usable match if the type of the catch argument is_________
A:
a parent class of the thrown class
B:
a child class of the thrown class
C:
either (a) or (b)
D:
neither (a) nor (b)
Answer: A
No answer description is available. Let's discuss.
The main difference in operation between an 'if statement and a 'while' statement is
A:
the 'while' loop body is executed
B:
the body of the 'while' statement may be executed many times, the body of the 'if statements only once
C:
the conditional expression following the keyboard is evaluated differently
D:
All of the above
Answer: B
No answer description is available. Let's discuss.
To write data that contains variables of type float, to an object of type ofstream, you should use
A:
the insertion operator
B:
seekg()
C:
writeQ
D:
put()
Answer: C
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz