-->

OOP MCQ UNIT 5



 


((QUESTION)) Which of the following type of class allows only one object of it to be 

created?

((OPTION_A)) Virtual class

((OPTION_B)) Abstract class

((OPTION_C)) Singleton class

((OPTION_D)) Friend class

((CORRECT_C

HOICE)) 

C



((QUESTION)) Which of the following statements is correct?

((OPTION_A)) Base class pointer cannot point to derived class

((OPTION_B)) Derived class pointer cannot point to base class

((OPTION_C)) Pointer to derived class cannot be created.

((OPTION_D)) Pointer to base class cannot be create

((CORRECT_C

HOICE)) 

B


((QUESTION)) Which of the following is not the member of class?

((OPTION_A)) Static function

((OPTION_B)) Friend function

((OPTION_C)) Const function

((OPTION_D)) Virtual function

((CORRECT_C

HOICE)) 

B



((QUESTION)) Which of the following concepts means determining at runtime what 

method to invoke?

((OPTION_A)) Data hiding

((OPTION_B)) Dynamic Typing

((OPTION_C)) Dynamic binding

((OPTION_D)) Dynamic loading

((CORRECT_C

HOICE))

C


((QUESTION)) Which of the following term is used for a function defined inside a class?

((OPTION_A)) Member Variable

((OPTION_B)) Member function

((OPTION_C)) Class function

((OPTION_D)) Classic function

((CORRECT_C

HOICE)) 

B


((QUESTION)) Which of the following concept of oops allows compiler to insert 

arguments in a function call if it is not specified?

((OPTION_A)) Call by value

((OPTION_B)) Call by reference

((OPTION_C)) Default arguments

((OPTION_D)) Call by pointer

((CORRECT_C

HOICE)) 

C


((QUESTION)) How many instances of an abstract class can be created?

((OPTION_A)) 1

((OPTION_B)) 5

((OPTION_C)) 15

((OPTION_D)) 0

((CORRECT_C

HOICE))

D


((QUESTION)) Which of the following cannot be friend?

((OPTION_A)) Function

((OPTION_B)) Class

((OPTION_C)) Object

((OPTION_D)) Operator function

((CORRECT_C

HOICE)) 

C


((QUESTION)) Which of the following concepts of OOPS means exposing only necessary 

information to client?

((OPTION_A)) Encapsulation

((OPTION_B)) Abstraction

((OPTION_C)) Data hiding

((OPTION_D)) Data binding

((CORRECT_C

HOICE)) 


B

0 Comments