Search Header Logo

Quiz 5 part 2

Authored by Tan Pham

Education

University

Used 9+ times

Quiz 5 part 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

19 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Accessor methods are also known as

setters

getters

attributes

instances

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of programming contains class definitions?

top-down

procedural

modular

object-oriented

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Object-oriented programming allows us to hide the object's data attributes from code that is outside the object.

T

F

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When an object is passed as an argument, ________ is passed into the parameter variable.

a reference to the object's state

a copy of the object

a reference to the object

Objects cannot be passed as arguments.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a UML diagram the first section holds the list of the class's methods.

T

F

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

All instances of a class share the same values of the data attributes in the class.

T

F

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is automatically called when you pass an object as an argument to the print function?

__state__

__str__

__obj__

__init__

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?