Exercise: Object Oriented Programming Using Cpp

Questions for: Object Oriented Programming Using Cpp

A data member holds a 1 or 0 depending on whether taxes have been paid. The best identifier for this member is _____
A:
taxes
B:
paidTaxes
C:
taxesArePaid
D:
code
Answer: B
No answer description is available. Let's discuss.
Two access specifers in C++ are
A:
public and private
B:
int and double
C:
formal and informal
D:
void and free
Answer: A
No answer description is available. Let's discuss.
An object is _____
A:
a category of classes
B:
a name given to a class
C:
an instance of a class
D:
the same as a class
Answer: C
No answer description is available. Let's discuss.
Having more than one function with the same name is called
A:
overloading
B:
defaulting
C:
casting
D:
referencing
Answer: A
No answer description is available. Let's discuss.
A function that uses variable types is called __________
A:
overloaded
B:
a template function
C:
a variable function
D:
a virtual function
Answer: B
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz