OOPs and Programming Quiz 1

Question 1

Time: 00:00:00
Which of the following is not an OOPs Concept ?

Encapsulation

Encapsulation

Inheritance

Inheritance

Polymorphism

Polymorphism

Exception Handling

Exception Handling

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 one of the following is an alternative to nested if statements?

break statement

break statement

continue statement

continue statement

Switch statement

Switch statement

For loop

For loop

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

Please login to submit your explanation

Start

Question 3

Time: 00:00:00
If we don’t want to return any value from the function, then function return type should be specified as?

void

void

int

int

double

double

None of the above

None of the above

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 OOPs, Wrapping up of data into a single unit is known as ?

Encapsulation

Encapsulation

Inheritance

Inheritance

Polymorphism

Polymorphism

Abstraction

Abstraction

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 among the following can’t be used for polymorphism?

Static member function

Static member function

Member function overloading

Member function overloading

Constructor overloading

Constructor overloading

Predefined operator overloading

Predefined operator overloading

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

Please login to submit your explanation

Start

Question 6

Time: 00:00:00
Two methods with the same name but different argument types are known as?

Method overloading

Method overloading

Method overriding

Method overriding

Both A and B

Both A and B

None of the above

None of the above

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

Please login to submit your explanation

Start

Question 7

Time: 00:00:00
A program written in high level language is called as ------------------

Executable code

Executable code

Object code

Object code

Source code

Source code

None of the above

None of the above

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

Please login to submit your explanation

Start

Question 8

Time: 00:00:00
Is-A relationship is also known as ?

Aggregation

Aggregation

Encapsulation

Encapsulation

Inheritance

Inheritance

Composition

Composition

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

Please login to submit your explanation

Start

Question 9

Time: 00:00:00
What is the similarity between a union, structure and enumeration?

Defining new variables

Defining new variables

Defining new pointers

Defining new pointers

Defining new structures

Defining new structures

Defining new data types

Defining new data types

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

Please login to submit your explanation

Start

Question 10

Time: 00:00:00
How many types of polymorphism are there in OOPs?

Two

Two

Three

Three

Four

Four

Five

Five

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

PrepInsta Prime Video

Complete Video course for GenC Elevate

for Elevate
Get Prime Video
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