Exercise: Object Oriented Programming Using Cpp

Questions for: Object Oriented Programming Using Cpp

The declaration section holds
A:
data members
B:
data members and function prototypes
C:
data members, function prototypes, and the functions themselves
D:
None of the above
Answer: B
No answer description is available. Let's discuss.
Each generic type in a template function definition is preceded by the keyword _________
A:
template
B:
function
C:
type
D:
class
Answer: A
No answer description is available. Let's discuss.
When a program calls a function that has default parameters, if you omit an argument, you must _____
A:
not omit any other arguments
B:
omit all arguments
C:
omit all arguments to the right of that argument
D:
omit all arguments to the left of that argument
Answer: C
No answer description is available. Let's discuss.
Which functions do not have a this pointer?
A:
access functions
B:
inspector functions
C:
member functions
D:
static functions
Answer: D
No answer description is available. Let's discuss.
Which of the following statements creates a named constant called driverAge whose value is 16?
A:
const driverAge = 16;
B:
const short driverAge = 16;
C:
driverAge =16;
D:
driverAge const =16;
Answer: B
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz