Contents

Which of the following are features of object oriented programming?
a) objects                             
b) classes
c) polymorphism
d) all of these

d

Which of the following keyword is used to declare a class?
a) Class                                
b) method
c) function                           
d) member function

a

The variables declared in a class are known as..
a) member variables
b) data members
c) both a & b                       
d) none of these

c

Which of the following is correct syntax for declaring a class?
a) class identifier{body}                  
b) class identifier (body)
c) class identifier [body]    
d) none of these

a

How many types of access specifiers in object oriented programming?
a) one    
b) two    
c) three 
d) four

c

Explanation: private, protected, public



Which of the following specifier       is used to restrict the use of class member within class?
a) public                                               
b) private
c) protected                          
d) final

b