Computer Science - Object Oriented Programming Using C++

1.
The last statement in a function is often a(n) _____
return
goodbye
finish
endfunction
Answer: Option
Explanation:
No answer description is available. Let's discuss.

2.
When the function int someFunction(char c) throw( ) is executed, _____
it can throw anything
it may throw an integer
it may throw a character
it may not throw anything
Answer: Option
Explanation:
No answer description is available. Let's discuss.

3.
The two statements that can be used to change the flow of control are
if and switch
if and while
switch and do-while
break and continue
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.

4.
If p and q are assigned the values 2 and 3 respectively then the statement p = q++
gives an error message
assigns a value 4 to p
assigns a value 3 to p
assigns a value 5 to p
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.

5.
Which of the following is the insertion operator?
>>
<<
//
/*
both (a) and (b)
Answer: Option
Explanation:
No answer description is available. Let's discuss.