Search Header Logo

OOP2023_Quiz4_B5B6B14B9AB10B13B7B8

Authored by MR ARORA

Computers

University

OOP2023_Quiz4_B5B6B14B9AB10B13B7B8
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What feature among the following is not right for OOPs?

Efficient Code

Duplicate or Redundant Data

Code Reusability

Modularity

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

Which of the following option is correct?

It’ll result in compile error because function call needs parentheses.

No compile error. It will print some garbage value, as some garbage value would be passed to foo function.

No error. No output.

No compile error. It will print 0, as 0 would be passed to foo function in argument.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between a class and an object?

A class is a blueprint to make an object.

A blueprint is an object to make a class.

An object is a blueprint to make a class.

A class is an instance of an object.

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Predict the output of the given code.

6

4

5

0

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is a main principle of OOP?

Data Abstraction

Message Passing

Cohesion

Code Reusability

Access all questions and much more by creating a free account

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

Already have an account?