Exercise: Object Oriented Programming Using Cpp

Questions for: Object Oriented Programming Using Cpp

You typically initialize a String variable to _____
A:
an asterisk
B:
a space enclosed in single quotes
C:
the number 0
D:
a zero-length string
Answer: D
No answer description is available. Let's discuss.
Inheritance is the principle that
A:
classes with the same name must be derived from one another
B:
knowledge of a general category can be applied to more specific objects
C:
C++ functions may be used only if they have logical predecessors
D:
one function name may invoke different methods
Answer: B
No answer description is available. Let's discuss.
Which of the following, if any, are invalid names for a variable?
A:
bankAccountNumber
B:
first_Name
C:
doubleNumber
D:
operator
Answer: D
No answer description is available. Let's discuss.
The loop condition in a flowchart is represented by a(n) _____
A:
diamond
B:
oval
C:
parallelogram
D:
rectangle
Answer: A
No answer description is available. Let's discuss.
When using the standard files that come with the C++ compiler, you should surround the header file name with _____
A:
square brackets
B:
angle brackets
C:
parentheses
D:
quotes
Answer: B
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz