Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

ber of the same 11) This type of member function may be called only from a funct

ID: 3711049 • Letter: B

Question

ber of the same 11) This type of member function may be called only from a function that is am class. A) global B) public C) private D) local E) None of these 12) 12) Members of a class object are accessed with the: A) cin object B) dot operator ) extraction operator D) stream insertion operator E) None of these a constructor function accepts no arguments, or does not have to accept arguments because 13) of default arguments, it is called a(n): A) default constructor B) empty constructor C) stand-alone function D) arbitrator function E) None of these 14) 14) If you do not declare an access specification, the default for members of a class is: A) global B) private C) public D) inline E) None of these 15) 15) This type of member function may be called from a statement outside the class. A) undeclared B) public C) global D) private E) None of these 16) A is a member function that is automatically called when a class object is 16) A) constructor, created B) destructor, created static function, deallocated D) utility function, declared E) None of these 17) This directive is used to create an "include guard," which allows a program to be conditionally 17) compiled. This prevents a header file from accidentally being included more than once. B) #endif 9 #include D) #guard E) None of these

Explanation / Answer

11) option c-private
we cannot access directly the private member function outside the class. We need to call it form any other function that is accessible outside the class.
12)dot operator
13)default constructor -> it is the one which will take no arguments.
14)private is the default access specifier.
15)public member function
16)constructor is the one that will be called when object is created.
17)#include