OOP2023_Quiz4_B5B6B14B9AB10B13B7B8

OOP2023_Quiz4_B5B6B14B9AB10B13B7B8

University

5 Qs

quiz-placeholder

Similar activities

Quiz on Basics of C

Quiz on Basics of C

University

10 Qs

c++ test-2

c++ test-2

University

9 Qs

Java Static

Java Static

University

10 Qs

TIU Quiz-9

TIU Quiz-9

University

10 Qs

Java Programming Structures

Java Programming Structures

University

9 Qs

OOP in PHP - Object Oriented Programming - deel 1

OOP in PHP - Object Oriented Programming - deel 1

6th Grade - University

10 Qs

Quiz Pre-Test Algoritma dan Pemrograman

Quiz Pre-Test Algoritma dan Pemrograman

University

10 Qs

java operators

java operators

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