Oops Online Test Questions and Answers

Oops Online Test

Take Oops Online Test and evaluate your readiness before you appear for any interview or written test. Consisting of objective type questions from various important concepts of Oops, this test presents you questions followed by four options. The correct answer, explanation and example provided with each question make it easier for you to understand each concept well.

Who is this Oops Online Test designed for?

All the Developers, Programmers, Front End developers, UI/ UX developers and designers will find this test extremely useful. All freshers, BCA, BE, BTech, MCA and college students wanting to make a career in IT field will be highly benefited by this test.

Oops Online Test topics

This online test covers topics like - Polymorphism, Encapsualtion, Inheritence, Abstraction, Composition, Dynamic binding, Constructor, Class, Functions, Data Hiding, Overloading, Overriding etc.
1. Which OOPS concept means exposing only necessary information to the calling functions?

a. Polymorphism
b. Encapsualtion
c. Inheritence
d. Abstraction

Answer: a. Encapsualtion

2. In which method changes made to the parameter inside the function have no effect on the argument?

a. Call by Value
b. Call by Reference
c. Call by function
d. Call by Variable

Answer:a. Call by Value

3. Which of the following type of class allows only a single instance of itself to be created?

a. Singleton class
b. Virtual class
c. Friend class
d. Abstract class

Answer:a. Singleton class

4. Which oops concept is used as reuse mechanism?

a. Abstraction
b. Dynamic binding
c. Inheritance
d. Encapsulation

Answer:c. Inheritance

5. Which function of a class is defined outside that class' scope but it has the right to access all private and protected members of the class?

a. Virtual function
b. Const function
c. Friend function
d. Static function

Answer:c. Friend function

6. Which constructor creates a new object of the same class using an existing object?

a. Copy constructor
b. Friend constructor  
c. Default constructor
d. Parameterized constructor

Answer:a. Copy constructor

7. Which constructor has no parameters?

a. Null Constructor
b. Parametric Constructor
c. Copy Constructor
d. Default Constructor

Answer:d. Default Constructor

8. Which class is the most generalized class and the parent class of a derived class?

a. Super class
b. Sub class
c. Child class
d. Base class

Answer:d. Base class

9. Which class is a class that inherits a method or methods from a superclass?

a. Sub class
b. Super class
c. Base class
d. Parent class

Answer:a. Sub class

10. How many instances can be created for an abstract class?

a. 0
b. 1
c. 5
d. 3

Answer:a. 0

11. Do we require parameter for constructors?

a. No
b. Yes

Answer:a. No

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

a. Copy constructor
b. Friend constructor
c. Default constructor
d. Parameterized constructor

Answer:b. Friend constructor

13. Which is also known as late binding or run-time binding?

a. Data hiding
b. Dynamic Typing
c. Dynamic binding
d. Dynamic loading

Answer:c. Dynamic binding