Exam 11: Classes and Object-Oriented Programming

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

A class might be thought of as a 'blueprint' that an object may be created from.

Free
(True/False)
4.8/5
(46)
Correct Answer:
Verified

True

An object's _______________ is simply the values of the object's attributes at any given moment.

Free
(Short Answer)
4.9/5
(34)
Correct Answer:
Verified

state

An object is a stand-alone program but is used by programs that need its service.

Free
(True/False)
4.9/5
(39)
Correct Answer:
Verified

False

A(n) _______________ is code that specifies the data attributes and methods for a particular type of object.

(Short Answer)
4.8/5
(36)

What is the special name given to the method that returns a string containing the object's state?

(Multiple Choice)
4.9/5
(38)

A(n) _______________ method in a class initializes an object's data attributes.

(Short Answer)
4.8/5
(35)

The _______________ attributes are created by the self parameter and they belong to a specific instance of the class.

(Short Answer)
4.8/5
(26)

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

(True/False)
4.9/5
(44)

What type of programming contains class definitions?

(Multiple Choice)
4.7/5
(30)

Procedures operate on data items that are separate from the procedures.

(True/False)
4.8/5
(39)

_______________ programming is a method of writing software that centers on the actions that take place in a program.

(Short Answer)
4.8/5
(32)

What is another name for the accessor methods?

(Multiple Choice)
4.9/5
(35)

A(n) _____ is a set of real-world objects, parties, and major events related to the problem.

(Multiple Choice)
4.8/5
(30)

When a method is called, what does Python make to reference the specific object on which the method is supposed to operate?

(Multiple Choice)
4.8/5
(43)

Which section in the UML holds the list of the class's data attributes?

(Multiple Choice)
4.8/5
(37)

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

(True/False)
4.8/5
(29)

A class _______________ is a set of statements that define a class's methods and data attributes.

(Short Answer)
4.8/5
(30)

What is, conceptually, a self-contained unit that consists of data attributes and methods that operate on the data attributes?

(Multiple Choice)
4.7/5
(37)

Each object that is created from a class is called a(n) _______________ of the class.

(Short Answer)
4.9/5
(38)

The self parameter need not be named self, but it is strongly recommended to conform with standard practice.

(True/False)
4.8/5
(39)
Showing 1 - 20 of 35
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)