Object oriented programming using c plus plus
type
return value
reference data
sentinel
Answer is Wrong!
Answer is Right!
2. An object is _____
a category of classes
a name given to a class
an instance of a class
the same as a class
Answer is Wrong!
Answer is Right!
3. A function that changes an object’s state belongs to the category of
inspector functions
mutator functions
auxiliary functions
manager functions
Answer is Wrong!
Answer is Right!
Detailed SolutionA function that changes an object’s state belongs to the category of
4. If a class object is thrown with a throw statement, then a subsequent catch block has a usable match if the type of the catch argument is_________
a parent class of the thrown class
a child class of the thrown class
either (a) or (b)
neither (a) nor (b)
Answer is Wrong!
Answer is Right!
5. If a class will serve as a base class, most often the base class data members are
private
protected
public
polymorphic
Answer is Wrong!
Answer is Right!
Detailed SolutionIf a class will serve as a base class, most often the base class data members are
6. The time and memory involved in calling a function represent the function’s _____
prototype
overhead
cost
burden
Answer is Wrong!
Answer is Right!
Detailed SolutionThe time and memory involved in calling a function represent the function’s _____
7. The main difference in operation between an ‘if statement and a ‘while’ statement is
the 'while' loop body is executed
the body of the 'while' statement may be executed many times, the body of the 'if statements only once
the conditional expression following the keyboard is evaluated differently
All of the above E. None of the above
Answer is Wrong!
Answer is Right!
8. A C++ statement must end in a
: (column)
, (comma)
. (period)
; (semicolon)
Answer is Wrong!
Answer is Right!
9. The preprocessor directive always ends with
a comma
a semicolon
neither a semicolon nor a comma
Answer is Wrong!
Answer is Right!
Detailed SolutionThe preprocessor directive always ends with
10. Variables that are known only to the function in which they are declared are called _____ variables
global
local
main
separate E. void
Answer is Wrong!
Answer is Right!