Search Header Logo

Introduction to OOP

Authored by ser firdaus

Computers

University

Used 195+ times

Introduction to OOP
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

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?

Discover more resources for Computers