09th
Feb
OOPs MCQ

OOPs MCQ

  • Admin
  • 09th Feb, 2023
  • 484 Followers

Take OOPs MCQ Quiz & Online Test to Test Your Knowledge

Practice here the best OOPs MCQ Questions, that checks your basic knowledge of OOPs (Object Oriented Programming). This OOPs MCQ Test contains 25+ Best Multiple Choice Questions, that are very popular & asked various times in OOPs Exams/Interviews. Kindly, choose the right option for every question to check your final preparation. apart from this, You can also download the OOPs MCQ Pdf completely free.

OOPs MCQ Quiz

1) Which of the following is shared structure of a set of similar objects?

  • A. Encapsulation
  • B.A Class
  • C.Inheritance
  • D.None of Above

2) Which of following does not have a body?

  • A. Interface
  • B.Class
  • C.Abstract Method
  • D.None of above

3) Which of following is pure object oriented programming language?

  • A. Java
  • B.SmallTalk
  • C.C++
  • D.Kotlin

4) In oops public, private & protected are ..........

  • A. Classes
  • B.Access Modifiers
  • C.Interfaces
  • D.Method signature

5) A private member of a class is visible to ..............

  • A. every where
  • B.in sub class
  • C.members to same package
  • D.only members of same class
Download Free : OOPs MCQ PDF

6) Which keyword is used to inherit a class or abstract class?

  • A. extends
  • B.extend
  • C.implement
  • D.inherit

7) Which of the following is an abstract data type?

  • A. Double
  • B.String
  • C.Int
  • D.Class

8) Can we overload constructor in derived class?

  • A. Yes
  • B.No

9) Which of the following is not related to OOPS?

  • A. Class and Object
  • B.Constructor and Destructor
  • C.Structure and Union
  • D.Inheritance and Polymorphism

10) We can not create instance of ..........

  • A. Anonymous class
  • B.Nested class
  • C.Parent class
  • D.Abstract class

11) Constructor can return a value

  • A. True
  • B.False

12) OOPs is invented by _______

  • A. Andrea Ferro
  • B.Dennis Ritchie
  • C.Adele Goldberg
  • D.Alan Kay

13) Which of the following is true for copy constructor?

  • A. The argument object is passed by reference
  • B.It can't be defined with zero arguments
  • C.Used when an object is passed by value to a function
  • D.Used when a function returns an object

14) Which Feature of OOP encourges the code reusability?

  • A. Polymorphism
  • B.Inheritance
  • C.Abstraction
  • D.Encapsulation

15) Which is correct syntax for creating an object of Class in Java?

  • A. classname objectname= new() integer;
  • B.classname objectname= new() classname()
  • C.classname objectname= new classname;
  • D.classname objectname= new classname()

16) Which language doesn't support single level inheritance?

  • A. C language
  • B.Java
  • C.Kotlin
  • D.C++

17) Which of the following is not the member of class?

  • A. Static function
  • B.Friend function
  • C.Const function
  • D.Virtual function

18) Which of the following is universal class for exception handling?

  • A. Object
  • B.Errors
  • C.Exceptions
  • D.Maths

19) Which among the following handles the undefined class exception in program?

  • A. ClassNotFound
  • B.NoClassException
  • C.ClassFoundException
  • D.None of the above

20) How many catch blocks you can use with single Try block?

  • A. Only 2
  • B.Only 1
  • C.Maximum 256
  • D.As many as required

21) The principle of abstraction is used to ..................

  • A. reduce duplication of information
  • B.achieve OOPS
  • C.remove longer codes
  • D.None of above

22) ............. violates the definition of encapsulation.

  • A. Public variables
  • B.Local variables
  • C.Array variables
  • D.Global variables

23) Which operator overloads using the friend function?

  • A. =
  • B.->
  • C.*
  • D.( )

24) Which feature of OOPS described the reusability of code?

  • A. Inheritance
  • B.Abstraction
  • C.Polymorphism
  • D.Encapsulation

25) Who developed object-oriented programming?

  • A. Alan Kay
  • B.Andrea Ferro
  • C.Dennis Ritchie
  • D.Adele Goldberg

Leave A Comment :

Valid name is required.

Valid name is required.

Valid email id is required.

Related MCQ/Quiz

01st
Jan
Python MCQ
01st
Feb
WCF MCQ
01st
Mar
CCNA MCQ