Computer Science - Object Oriented Programming Using C++

1.
The main difference in operation between an 'if statement and a 'while' statement is
the 'while' loop body is executed
the body of the 'while' statement may be executed many times, the body of the 'if statements only once
the conditional expression following the keyboard is evaluated differently
All of the above
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.

2.
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 parent class of the thrown class
a child class of the thrown class
either (a) or (b)
neither (a) nor (b)
Answer: Option
Explanation:
No answer description is available. Let's discuss.

3.
The weakest form of cohesion is
coincidental
functional
logical
communicational
Answer: Option
Explanation:
No answer description is available. Let's discuss.

4.
The 'continue' statement is used to
permit two different expressions to appear in situations where only one expression would ordinarily be used
terminate loops or to exit from a switch
alter the normal sequence of program execution by transferring control to some other part of the program
All of the above
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.

5.
The 'break' statement is used to exist from
a do loop
a for loop
a switch statement
All of the above
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.