Contents

C++ class contains data members and….
a) methods                           
b) clients
c) interfaces                         
d) files

a

What is the class definition?
a) must have constructor                                  
b) must end with semicolon
c) provides class interface
d) both b & c

d

The member of a class object are accessed with…..
a) dot operator     
b) extraction operator
c) insertion operator
d) assignment operator

a

Which of the class member are accessible from anywhere?
a) public                                               
b) protected
c) private                              
d) final

a

The default access specifier for class member is……
a) public                                               
b) protected
c) private                             
d) final

c

Which type of class members can only be used by its own methods and friends?
a) public                                               
b) protected
c) private                             
d) final

c