Q.1
Who invented OOP?
  • a) Andrea Ferro
  • b) Adele Goldberg
  • c) Alan Kay
  • d) Dennis Ritchie
Q.2
Which is not a feature of OOP in general definitions?
  • a) Efficient Code
  • b) Code reusability
  • c) Modularity
  • d) Duplicate/Redundant data
Q.3
Which was the first purely object oriented programming language developed?
  • a) Kotlin
  • b) SmallTalk
  • c) Java
  • d) C++
Q.4
When OOP concept did first came into picture?
  • a) 1980’s
  • b) 1995
  • c) 1970’s
  • d) 1993
Q.5
Which feature of OOP indicates code reusability?
  • a) Abstraction
  • b) Polymorphism
  • c) Encapsulation
  • d) Inheritance
Q.6
Which header file is required in C++ to use OOP?
  • a) OOP can be used without using any header file
  • b) stdlib.h
  • c) iostream.h
  • d) stdio.h
Q.7
Why Java is Partially OOP language?
  • a) It allows code to be written outside classes
  • b) It supports usual declaration of primitive data types
  • c) It does not support pointers
  • d) It doesn’t support all types of inheritance
Q.8
Which among the following doesn’t come under OOP concept?
  • a) Data hiding
  • b) Message passing
  • c) Platform independent
  • d) Data binding
Q.9
Which is the correct syntax of inheritance?
  • a) class base_classname :access derived_classname{ /*define class body*/ };
  • b) class derived_classname : access base_classname{ /*define class body*/ };
  • c) class derived_classname : base_classname{ /*define class body*/ };
  • d) class base_classname : derived_classname{ /*define class body*/ };
Q.10
Which of the following is not a property of an object?
  • a) Properties
  • b) Names
  • c) Identity
  • d) Attributes
Q.11
Which feature of OOP is indicated by the following code? class student{ int marks; }; class topper:public student{ int age; topper(int age){ this.age=age; } };
  • a) Encapsulation and Inheritance
  • b) Inheritance and polymorphism
  • c) Polymorphism
  • d) Inheritance
Q.12
The feature by which one object can interact with another object is _____________
  • a) Message reading
  • b) Message Passing
  • c) Data transfer
  • d) Data Binding
Q.13
Which among the following, for a pure OOP language, is true?
  • a) The language should follow at least 1 feature of OOP
  • b) The language must follow only 3 features of OOP
  • c) The language must follow all the rules of OOP
  • d) The language should follow 3 or more features of OOP
Q.14
How many types of access specifiers are provided in OOP (C++)?
  • a) 4
  • b) 3
  • c) 2
  • d) 1
Q.15
In multilevel inheritance, which is the most significant feature of OOP used?
  • a) Code efficiency
  • b) Code readability
  • c) Flexibility
  • d) Code reusability
Q.16
What is encapsulation in OOP?
  • a) It is a way of combining various data members and member functions that operate on those data members into a single unit
  • b) It is a way of combining various data members and member functions into a single unit which can operate on any data
  • c) It is a way of combining various data members into a single unit
  • d) It is a way of combining various member functions into a single unit
Q.17
Which of the following is not true about polymorphism?
  • a) Helps in redefining the same functionality
  • b) Increases overhead of function definition always
  • c) It is feature of OOP
  • d) Ease in readability of program
Q.18
Which constructor will be called from the object created in the below C++ code? class A { int i; A() { i=cout<<i; } A(int x= { i=x; cout<<I; } }; A obj1;
  • a) Parameterized constructor
  • b) Default constructor
  • c) Run time error
  • d) Compile time error
Q.19
What is an abstraction in object-oriented programming?
  • a) Hiding the implementation and showing only the features
  • b) Hiding the important data
  • c) Hiding the implementation
  • d) Showing the important data
Q.20
Which among the following can show polymorphism?
  • a) Overloading &&
  • b) Overloading <<
  • c) Overloading ||
  • d) Overloading +=
0 h : 0 m : 1 s