A) the function accesses the original object, rather than a copy of it.
B) the function cannot make any changes to the member variables.
C) it is more efficient than passing it by value.
D) all of the above are True.
E) A and B are True, but not C.
Correct Answer
verified
Multiple Choice
A) dot operator.
B) get function.
C) extraction operator.
D) member access operator.
E) class name.
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) an accessor.
B) a mutator.
C) a user.
D) a get function.
E) an updater.
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) It has member data that is usually private and accessed through public member functions.
B) Its data can be initialized with a constructor.
C) It can be passed to a function or returned from a function.
D) All of the above.
E) B and C, but not A.
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) setSide(5) ;
B) box.setSide(5) ;
C) Square.setSide(5) ;
D) Square.setSide = 5;
E) None of the above
Correct Answer
verified
Multiple Choice
A) OOP.
B) encapsulation.
C) data hiding.
D) structuring.
E) private access.
Correct Answer
verified
Multiple Choice
A) members
B) ADTs
C) instances
D) children
E) None of the above
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) private member functions.
B) public member functions.
C) public data members.
D) access specifiers.
E) None of the above
Correct Answer
verified
Multiple Choice
A) empty
B) default
C) stand-alone
D) zero-element
E) useless
Correct Answer
verified
Multiple Choice
A) is used to remove old unneeded objects.
B) causes the program to end.
C) is automatically called when an object is destroyed.
D) can only be called by the main function of a program.
E) None of the above.
Correct Answer
verified
Multiple Choice
A) default constructor
B) class protection operator
C) protect() member function
D) public access specifier
E) private access specifier
Correct Answer
verified
Multiple Choice
A) inline
B) public
C) private
D) declared
E) constructor
Correct Answer
verified
Multiple Choice
A) 1
B) 2
C) Summer
D) "Summer"
E) None of these.
Correct Answer
verified
Multiple Choice
A) static
B) global
C) inline
D) conditional
E) constructor
Correct Answer
verified
Multiple Choice
A) set, get
B) get, set
C) public, private
D) private, public
E) regular, inline
Correct Answer
verified
Multiple Choice
A) example
B) copy
C) instance
D) attribute
E) member
Correct Answer
verified
Showing 1 - 20 of 40
Related Exams