Contents

Which of the following class allows to declare only one object of it?
a) abstract class
b) virtual class
c) singleton class        
d) friend class

c

Which of the following are included in body of class?
a) data members
b) member function
c) both a & b       
d) none of these

c

How many types of access specifier in OOP?
a) one  
b) two 
c) three
d) four

c

Explanation: private specifier, public specifier, protected specifier


The collection of data and function is called……
a) object                                 
b) data members
c) function                  
d) parameter

a

In C++, the class variables are called as……
a) functions           
b) constant
c) object               
d) methods

c

Which of the following is the correct syntax of object?
a) object-name class-name;      
b) class-name object-name;
c) class-name [];          
d) all of these

b