quiz Object Oriented Programming MCQ Practice

corporate_fare Computing and Information Technology
school B.Sc. Computer Science
30 Questions
0 Completed
0 Correct
0 of 30 completed
visibility You're studying as a guest — progress isn't saved. Sign in to track progress
help Question 1
radio_button_unchecked

Who invented OOP?

help Question 2
radio_button_unchecked

Which is not a feature of OOP in general definitions?

help Question 3
radio_button_unchecked

Which was the first purely object oriented programming language developed?

help Question 4
radio_button_unchecked

When OOP concept did first came into picture?

help Question 5
radio_button_unchecked

Which feature of OOP indicates code reusability?

help Question 6
radio_button_unchecked

Which header file is required in C++ to use OOP?

help Question 7
radio_button_unchecked

Why Java is Partially OOP language?

help Question 8
radio_button_unchecked

Which among the following doesn't come under OOP concept?

help Question 9
radio_button_unchecked

Which is the correct syntax of inheritance?

help Question 10
radio_button_unchecked

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; } };

help Question 11
radio_button_unchecked

The feature by which one object can interact with another object is _____________

help Question 12
radio_button_unchecked

Which among the following, for a pure OOP language, is true?

help Question 13
radio_button_unchecked

How many types of access specifiers are provided in OOP (C++)?

help Question 14
radio_button_unchecked

In multilevel inheritance, which is the most significant feature of OOP used?

help Question 15
radio_button_unchecked

What is encapsulation in OOP?

help Question 16
radio_button_unchecked

Which of the following is not true about polymorphism?

help Question 17
radio_button_unchecked

Which constructor will be called from the object created in the below C++ code? class A &#123; int i; A&#40;&#41; &#123; i=0; cout<<i; &#125; A&#40;int x=0&#41; &#123; i=x; cout<<I; &#125; &#125;; A obj1;

help Question 18
radio_button_unchecked

What is an abstraction in object-oriented programming?

help Question 19
radio_button_unchecked

Which among the following can show polymorphism?

help Question 20
radio_button_unchecked

In which access should a constructor be defined, so that object of the class can be created in any function?

help Question 21
radio_button_unchecked

Which among the following is correct for the class defined below? class student &#123; int marks; public: student&#40;&#41;&#123;&#125; student&#40;int x&#41; &#123; marks=x; &#125; &#125;; main&#40;&#41; &#123; student s1&#40;100&#41;; student s2&#40;&#41;; student s3=100; return 0; &#125;

help Question 22
radio_button_unchecked

The copy constructors can be used to ________

help Question 23
radio_button_unchecked

Which among the following represents correct constructor?

help Question 24
radio_button_unchecked

What happens when an object is passed by reference?

help Question 25
radio_button_unchecked

Which access specifier is usually used for data members of a class?

help Question 26
radio_button_unchecked

How to access data members of a class?

help Question 27
radio_button_unchecked

Which feature of OOP reduces the use of nested classes?

help Question 28
radio_button_unchecked

Which keyword among the following can be used to declare an array of objects in java?

help Question 29
radio_button_unchecked

Which operator can be used to free the memory allocated for an object in C++?

help Question 30
radio_button_unchecked

Which of the following is not a property of an object?