Professional Documents
Culture Documents
B. Abstract class
C. Singleton class
D. Friend class
B. Friend constructor
C. Default constructor
D. Parameterized constructor
D. Both A and B.
Q4. Which of the following header file includes definition of cin and cout?
A. istream.h
B. ostream.h
C. iomanip.h
D. iostream.h
Q5. Which of the following access specifier is used as a default in a class definition?
A. protected
B. public
C. private
D. friend
B. &
C. ||
D. !
B.
C.
D.
Whether a reference should be de-referenced or not depends on the type of the reference.
10. Which of the following keywords is used to control access to a class member?
A.
Default
B.
B. Break
C.
Protected
D. Asm
Answer:
(1)