Quiz on OOPs- Day 1 (30-01-2025)

Quiz on OOPs- Day 1 (30-01-2025)

University

10 Qs

quiz-placeholder

Similar activities

OOP 1 Undiksha

OOP 1 Undiksha

12th Grade - University

13 Qs

Chapter 3 Exploring Linux Filesystems

Chapter 3 Exploring Linux Filesystems

11th Grade - University

10 Qs

Computer Network Fun Review 5 - Data Link Layer

Computer Network Fun Review 5 - Data Link Layer

University

10 Qs

PYTHON LOOPING

PYTHON LOOPING

University

10 Qs

Adobe Photoshop

Adobe Photoshop

University

10 Qs

After Effect Intoduction

After Effect Intoduction

10th Grade - University

15 Qs

Google Aptitude Test

Google Aptitude Test

KG - University

10 Qs

VR and AR in multimedia applications

VR and AR in multimedia applications

University

10 Qs

Quiz on OOPs- Day 1 (30-01-2025)

Quiz on OOPs- Day 1 (30-01-2025)

Assessment

Quiz

Computers

University

Medium

Created by

Ragini Kumari

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which one of the following are essential features of an object-oriented programming language?

Abstraction and encapsulation

Strictly-typedness

Polymorphism in the presence of inheritance

Type-safe property coupled with sub-type rule

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following languages supports polymorphism but not the classes?

Ada

C++

C#

Java

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following program fragment?

Class P { void f(int i) { print(i); } } Class Q subclass of P { void f(int i) { print(2*i); } }

P x = new Q(); Q y = new Q(); P z = new Q(); x.f(1); ((P)y).f(1); z.f(1);

1 2 2

1 1 1

2 2 2

1 2 1

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which feature of OOP indicates code reusability?

Polymorphism

Inheritance

Encapsulation

Abstraction

5.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which one of the following are essential features of object-oriented language?

Polymorphism in the presence of inheritance

Type-safe property coupled with sub-type rule

Strictly-typed

Abstraction and encapsulation

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is associated with objects?

Identity

Behaviour

State

All of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What can you say about the following two statements regarding abstraction and encapsulation?

I. Abstraction allows us to focus on what something does without considering the complexities of how it works. II. Encapsulation allows us to consider complex ideas while ignoring irrelevant detail that would confuse us.

Only I is correct.

Only II is correct.

Both I and II are correct.

Neither I nor II is correct.

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?