OOPs Questions with Answers: Important for Interview


Q. Which of the following is not a type of constructor?

A. Copy constructor
B. Friend constructor
C. Default constructor
D. Parameterized constructor



Q. Which of the following type of class allows only one object of it to be created?

A. Virtual class
B. Abstract class
C. Singleton class
D. Friend class


Q. Which of the following concepts means waiting until runtime to determine which function to call?

A. Data hiding
B. Dynamic casting
C. Dynamic binding
D. Dynamic loading


Q. How "Late binding" is implemented in C++?

A. Using C++ tables
B. Using Virtual tables
C. Using Indexed virtual tables
D. Using polymorphic tables


Q. Which of the following is correct about class and structure?

A. class can have member functions while structure cannot.
B. class data members are public by default while that of structure are private.
C. Pointer to structure or classes cannot be declared.
D. class data members are private by default while that of structure are public by default.


Q. Which of the following concepts means determining at runtime what method to invoke?

A. Data hiding
B. Dynamic Typing
C. Dynamic binding
D. Dynamic loading


Q. Which of the following is an invalid visibility label while inheriting a class?

A. public
B. private
C. protected
D. friend



1 comment:

  1. I have read your blog it’s very attractive and impressive. I like it your blog.
    Click for this

    ReplyDelete

We are here to listen you, Comment your valueable opinion...!!!