Exercise: Object Oriented Programming Using Cpp

Questions for: Object Oriented Programming Using Cpp

The right shift operator is represented by the symbol
A:
>
B:
>>
C:
->
D:
<
Answer: B
No answer description is available. Let's discuss.
Which of the following C++ expressions is equivalent to the mathematical expression 53 ?
A:
5 ^ 3
B:
cube(5)
C:
pow (3, 5)
D:
pow(5, 3)
Answer: D
No answer description is available. Let's discuss.
A class hierarchy
A:
describes "is a kind of" relationships
B:
describes "has a" relationships
C:
shows the same relationships as an organization chart
D:
shows the same relationships as a family tree
Answer: A
No answer description is available. Let's discuss.
You can override a class's inherited access to make an individual member's access more ______
A:
liberal
B:
conservative
C:
either (a) or (b)
D:
neither (a) nor (b)
Answer: B
No answer description is available. Let's discuss.
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.)
A:
(initial = 'a' or 'A')
B:
(initial == 'a' or 'A')
C:
(toupper(initial) = 'A')
D:
(toupper(initial) == 'A')
Answer: D
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz