Introduction to OOP

Introduction to OOP

University

20 Qs

quiz-placeholder

Similar activities

Quiz on Java

Quiz on Java

University

20 Qs

OOP CHAPTER 1

OOP CHAPTER 1

University

17 Qs

PYTHON ENCAPSULATION

PYTHON ENCAPSULATION

University

20 Qs

Java Object Creation and Classes

Java Object Creation and Classes

University

20 Qs

JAVA BASICS

JAVA BASICS

University

25 Qs

Quiz 1-PBO

Quiz 1-PBO

University

20 Qs

OOPS-1

OOPS-1

University

20 Qs

Object Oriented Programming Evaluation 4

Object Oriented Programming Evaluation 4

University

15 Qs

Introduction to OOP

Introduction to OOP

Assessment

Quiz

Computers

University

Medium

Created by

ser firdaus

Used 185+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which statement(s) best describes an object's attributes?

Attributes act like the nouns of an object.

Attributes describe an object's behavior.

Attributes can mean pretty much whatever you want them to mean — that's what we mean by "open source."

All of the above

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which statement(s) best describes an object's behavior?

Behavior acts like the nouns of an object.

Behavior, like attributes, can be defined however we want — that's what we mean by "open source."

Behavior acts like the verbs of an object.

All of the above.

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Encapsulation means "open to all" and indicates that the internal workings of an object are entirely visible to the outside world.

True

False

Sometimes

4.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Which statement(s) best describes inheritance?

One object (the child) generalizes the attributes and behavior of another object (the parent), making the object more generalized.

The child object inherits from its parent, adding specialized attributes and behavior

When a child object is created, a well-known best practice is for the developer to manually copy/paste all of the source code from the parent object to ensure that nothing gets broken.

When a child object inherits from its parent, only the additional attributes and behavior must be coded, which is one of the benefits of OOP.

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the these is the functionality of ‘Encapsulation’?

Binds together code and data

Using single interface for general class of actions

Reduce Complexity

All of the mentioned

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image
Which of the following is a mechanism by which object acquires the properties of another object?
Encapsulation
 Abstraction
Inheritance
 Polymorphism

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following supports the concept of hierarchical classification?
Polymorphism
Encapsulation
Abstraction
Inheritance

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?