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/0

Accuracy

0%

Prime

PrepInsta Prime Video

Complete Video course for GenC Elevate

for Elevate
Get Prime Video