Exercise: Object Oriented Programming Using Cpp

Questions for: Object Oriented Programming Using Cpp

Which of the following is a valid condition for an if statement? (The condition should be both syntactically and logically valid.)
A:
(age) > 65
B:
(age > 0 and < 10)
C:
(sales > 500 && < 800)
D:
(sales > 100 && sales <= 1000)
Answer: D
No answer description is available. Let's discuss.
The contents of two pointers that point to adjacent of type float differ by
A:
one bytes
B:
two bytes
C:
three bytes
D:
four bytes
Answer: D
No answer description is available. Let's discuss.
Machine code is _____
A:
edited code
B:
source code
C:
the 0s and 1s that the computer can understand
D:
both (b) and (c)
Answer: C
No answer description is available. Let's discuss.
Which of the following is an access specifier?
A:
particular
B:
shielded
C:
protected
D:
safe
Answer: C
No answer description is available. Let's discuss.
Assume a class Derv that is privately derived from class Base. An object of class Derv located in main() can access
A:
public members of Base
B:
protected members of Base
C:
private members of Base
D:
public members of Derv
Answer: A
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz