Exam 10: Classes and Object-Oriented Programming

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

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

(True/False)
4.8/5
(76)

Which method is automatically executed when an instance of a class is created in memory?

(Multiple Choice)
4.9/5
(60)

What type of method provides a safe way for code outside a class to retrieve the values of attributes,without exposing the attributes in a way that could allow them to be changed by code outside the method?

(Multiple Choice)
4.8/5
(76)

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

(Multiple Choice)
4.8/5
(83)

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

(Short Answer)
5.0/5
(84)

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

(Short Answer)
4.7/5
(86)

In ___________ programming,the programming is centered on objects that are created from abstract data types that encapsulate data and functions together.

(Short Answer)
4.9/5
(70)

The self parameter is required in every method of a class.

(True/False)
4.8/5
(70)

A class __________ is a set of statements that defines a class's methods and data attributes.

(Short Answer)
4.8/5
(82)

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

(True/False)
4.8/5
(77)

Mutator methods are also known as

(Multiple Choice)
4.9/5
(75)

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

(Short Answer)
4.9/5
(80)

An object's __________ contains the values of the object's attributes at a given moment.

(Short Answer)
4.7/5
(89)

In object-oriented programming,one of first tasks of the programmer is to

(Multiple Choice)
4.8/5
(84)

Which of the following can be thought of as a self-contained unit that consists of data attributes and the methods that operate on the data attributes?

(Multiple Choice)
5.0/5
(79)

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

(True/False)
4.8/5
(87)

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

(Multiple Choice)
4.9/5
(77)

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

(True/False)
4.8/5
(82)
Showing 21 - 38 of 38
close modal

Filters

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