Computer Science - Object Oriented Programming Using C++

41.
Recursive Functions
easier to code
executable faster than iterative ones
takes less main storage space
necessary to solve a certain class of problems
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.

42.
The purpose of a conditional operator is to
select one of the two values
select the highest of the two values
select one of the two values depending on a condition
select the more equal of the two values
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.

43.
Which of the following, if any, are valid names for variables?
amt.Sold
amt-Sold
amt_Sold
98Sold
None of the above are valid names for variables
Answer: Option
Explanation:
No answer description is available. Let's discuss.

44.
Assume you want to compare the character stored in the initial variable to the letter a. Which of the following conditions should you use in the if statement? (Be sure the condition will handle a or A.)
(initial = 'a' or 'A')
(initial == 'a' or 'A')
(toupper(initial) = 'A')
(toupper(initial) == 'A')
Answer: Option
Explanation:
No answer description is available. Let's discuss.

45.
You can override a class's inherited access to make an individual member's access more ______
liberal
conservative
either (a) or (b)
neither (a) nor (b)
Answer: Option
Explanation:
No answer description is available. Let's discuss.