Exercise: Object Oriented Programming Using Cpp

Questions for: Object Oriented Programming Using Cpp

When a class serves as a base class to others, _____
A:
all of its members are inherited
B:
all of its members are inherited, except for any private members
C:
all of its members are inherited, except for any protected members
D:
None of its members is inherited unless specifically "listed
Answer: B
No answer description is available. Let's discuss.
The number 125.35 is a _____
A:
character literal constant
B:
numeric literal constant
C:
string literal constant
D:
variable
Answer: B
No answer description is available. Let's discuss.
A default constructor _____
A:
takes no arguments
B:
has default values for all its arguments
C:
either (a) or (b)
D:
neither (a) nor (b).
Answer: C
No answer description is available. Let's discuss.
One way in which a structure differs from an array is that _____
A:
a structure may have members of more than one type
B:
a structure must have members that; are all the same type
C:
art array may have members of more than one type
D:
there is no difference between a structure and an array
Answer: A
No answer description is available. Let's discuss.
In the C language, the character type of constant is delimited by using
A:
single quotes
B:
double quotes
C:
parenthesis
D:
#
Answer: A
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz