OOP2023_Quiz4_B5B6B14B9AB10B13B7B8

OOP2023_Quiz4_B5B6B14B9AB10B13B7B8

University

5 Qs

quiz-placeholder

Similar activities

Conditional Statements - C

Conditional Statements - C

12th Grade - University

10 Qs

Java Classes & Objects

Java Classes & Objects

University

5 Qs

BINARY BRAINS

BINARY BRAINS

University

10 Qs

Python - Functions

Python - Functions

University

10 Qs

CODE CAREER

CODE CAREER

University

9 Qs

TCP1121 - Quiz 6 Bonus

TCP1121 - Quiz 6 Bonus

University

8 Qs

Java Quiz 2 based on loop and if else

Java Quiz 2 based on loop and if else

University

10 Qs

1D Array

1D Array

University

10 Qs

OOP2023_Quiz4_B5B6B14B9AB10B13B7B8

OOP2023_Quiz4_B5B6B14B9AB10B13B7B8

Assessment

Quiz

Computers

University

Hard

Created by

MR ARORA

FREE Resource

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