OOPs Quiz – 1

Question 1

Time: 00:00:00
OOP was invented by whom?

Dennis Ritchie

Dennis Ritchie

Adele Goldberg

Adele Goldberg

Andrea Ferro

Andrea Ferro

Alan Kay

Alan Kay

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 2

Time: 00:00:00
Which of the following is not a feature of OOP?

Efficient Code

Efficient Code

Duplicate/Redundant data

Duplicate/Redundant data

Modularity

Modularity

Code reusability

Code reusability

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 3

Time: 00:00:00
Which was the first programming language which was developed purely on object oriented concept?

Kotlin

Kotlin

C++

C++

Java

Java

SmallTalk

SmallTalk

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 4

Time: 00:00:00
In which year was OOP invented?

1995

1995

1970’s

1970’s

1993

1993

1980’s

1980’s

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 5

Time: 00:00:00
Which feature of OOP refers to reusability of code?

Inheritance

Inheritance

Encapsulation

Encapsulation

Abstraction

Abstraction

Polymorphism

Polymorphism

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 6

Time: 00:00:00
OOP need which header file in C++?

iostream.h

iostream.h

stdlib.h

stdlib.h

OOP can be used without using any header file

OOP can be used without using any header file

stdio.h

stdio.h

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 7

Time: 00:00:00
Why is Java known to be Partially OOP language?

It allows code to be written outside classes

It allows code to be written outside classes

It doesn’t support all types of inheritance

It doesn’t support all types of inheritance

It supports usual declaration of primitive data types

It supports usual declaration of primitive data types

It does not support pointers

It does not support pointers

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 8

Time: 00:00:00
Which of the following is not a part of OOP concept?

Platform independent

Platform independent

Data hiding

Data hiding

Data binding

Data binding

Message passing

Message passing

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 9

Time: 00:00:00
Which is the correct syntax of inheritance?

class base_classname :access derived_classname{ /*define class body*/ }

class base_classname :access derived_classname{ /*define class body*/ }

class derived_classname : base_classname{ /*define class body*/ }

class derived_classname : base_classname{ /*define class body*/ }

class derived_classname : access base_classname{ /*define class body*/ }

class derived_classname : access base_classname{ /*define class body*/ }

class base_classname : derived_classname{ /*define class body*/ }

class base_classname : derived_classname{ /*define class body*/ }

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 10

Time: 00:00:00
The following code indicates which feature of OOP?
class student{ int marks; };
class topper:public student{ int age; topper(int age){ this.age=age; } };

Inheritance and polymorphism

Inheritance and polymorphism

Encapsulation and Inheritance

Encapsulation and Inheritance

Polymorphism

Polymorphism

Inheritance

Inheritance

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

["0","40","60","80","100"]
["Need more practice!","Keep trying!","Not bad!","Good work!","Perfect!"]

Personalized Analytics only Availble for Logged in users

Analytics below shows your performance in various Mocks on PrepInsta

Your average Analytics for this Quiz

Rank

-

Percentile

0%

Completed

0/10

Accuracy

0%

Prime

Prime Video

Complete Video Course for HCL

For HCL
Get Prime Video

Prime

Prime Mock

Topic-Wise Full Mock for HCL

For HCL
Get Prime Mock
Get Prepinsta Prime

Get all 200+ courses offered by Prepinsta

Never Miss an OffCampus Update

Get OffCampus Updates on Social Media from PrepInsta

Follow us on our Media Handles, we post out OffCampus drives on our Instagram, Telegram, Discord, Whatsdapp etc.

Get Hiring Updates
Amazon,Google,Delottie & 30+companies are hiring ! Get hiring Updates right in your inbox from PrepInsta

Get over 200+ course One Subscription

Courses like AI/ML, Cloud Computing, Ethical Hacking, C, C++, Java, Python, DSA (All Languages), Competitive Coding (All Languages), TCS, Infosys, Wipro, Amazon, DBMS, SQL and others.

Get over 200+ course One Subscription

Courses like AI/ML, Cloud Computing, Ethical Hacking, C, C++, Java, Python, DSA (All Languages), Competitive Coding (All Languages), TCS, Infosys, Wipro, Amazon, DBMS, SQL and others.

Get PrepInsta Prime Subscription

Get access to all the courses that PrepInsta offers, check the out below -

Companies

TCS, Cognizant, Delloite, Infosys, Wipro, CoCubes, KPMG, Amazone, ZS Associates, Accenture, Congnizant & other 50+ companies

Programming

Data Structures, Top 500 Codes, C, C++, Java Python & other 10+ subjects

Skills

Full Stack Web Development, Data Science, Machine Learning, AWS Cloud, & other 10+ skills and 20+ projects