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

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

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

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

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

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

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

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

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

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

["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%

Get over 200+ Courses under One Subscription

mute

Don’t settle Learn from the Best with PrepInsta Prime Subscription

Learn from Top 1%

One Subscription, For Everything

The new cool way of learning and upskilling -

Limitless Learning

One Subscription access everything

Job Assistance

Get Access to PrepInsta Prime

Top Faculty

from FAANG/IITs/TOP MNC's

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.