NTT Data OOPs Quiz-1

Question 1

Time: 00:00:00
Who invented OOPs?

Dennis Ritchie

Dennis Ritchie

Alan kay

Alan kay

James gosling

James gosling

Andrea Ferro

Andrea Ferro

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

Please login to submit your explanation

Question 2

Time: 00:00:00
Which feature in OOPs that can be used for code reusability

Abstraction

Abstraction

Polymorphism

Polymorphism

Encapsulation

Encapsulation

Inheritance

Inheritance

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

Please login to submit your explanation

Question 3

Time: 00:00:00
How many types of access specifiers are provided in OOP?

3

3

4

4

2

2

1

1

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

Please login to submit your explanation

Question 4

Time: 00:00:00
Which among the following can show polymorphism?

Overloading &&

Overloading &&

Overloading +=

Overloading +=

Overloading ||

Overloading ||

Overloading <<

Overloading <<

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

Please login to submit your explanation

Question 5

Time: 00:00:00
class student
{
int marks;

 public: student(){}

 student(int a)

  { 

        marks=a; 

   }

};

main()

{

    student s1(100);

    student s2();

   student s3=100;

   return 0;

}

Only objects s1 and s2 will be created.

Only objects s1 and s2 will be created.

Program runs and all objects are created.

Program runs and all objects are created.

The program will give a compile-time error.

The program will give a compile-time error.

Object s3, syntax error

Object s3, syntax error

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

Please login to submit your explanation

Question 6

Time: 00:00:00
Which feature of OOP reduces the use of nested classes?

Abstraction.

Abstraction.

Polymorphism.

Polymorphism.

Encapsulation.

Encapsulation.

Inheritance.

Inheritance.

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

Please login to submit your explanation

Question 7

Time: 00:00:00
Encapsulation and abstraction differ as?

Can be used anyway

Can be used anyway

Binding and Hiding respectively

Binding and Hiding respectively

Hiding and Binding respectively

Hiding and Binding respectively

Hiding and hiding respectively

Hiding and hiding respectively

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

Please login to submit your explanation

Question 8

Time: 00:00:00
Which was the first purely object-oriented programming language developed?

c++

c++

kotlin

kotlin

small Talk

small Talk

Java

Java

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

Please login to submit your explanation

Question 9

Time: 00:00:00
A single program of OOPS contains _______ classes?

Any number

Any number

only 999

only 999

Only 100

Only 100

Only 1

Only 1

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

Please login to submit your explanation

Question 10

Time: 00:00:00
Which among the following doesn’t come under the OOP concept?

Data hiding

Data hiding

Message passing

Message passing

Platform independent

Platform independent

Data binding

Data binding

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.