Contents

Wrapping data and its related functionality into a single entity is known as………
a) abstraction                      
b) encapsulation
c) polymorphism
d) Modularity

b

What does polymorphism mean?
a) allowing overriding functions  
b) concept of hiding data
c) keeping things in different modules
d) wrapping things into single unit

a

Which of the following allow you to reuse the written code?
a) encapsulation 
b) abstraction
c) inheritance                     
d) polymorphism

c

Which of the following show multiple inheritance?
a) A->B->C                          
b) A->B; A->C
c) A, B->C                            
d) B->A

c

What does modularity mean?
a) hiding part of program                                  
b) subdividing program into small parts
c) overriding parts of program
d) wrapping things into single unit

c

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