Exam 3: A First Look at Classes and Objects

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

A method that stores a value in a class's field or in some other way changes the value of a field is known as a mutator method.

Free
(True/False)
5.0/5
(70)
Correct Answer:
Verified

True

The term "default constructor" is applied to the first constructor written by the author of the class.

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

False

What does the following UML diagram entry mean? + setHeight(h : double) : void

Free
(Multiple Choice)
4.9/5
(84)
Correct Answer:
Verified

A

The scope of a local variable is

(Multiple Choice)
4.8/5
(79)

A method

(Multiple Choice)
5.0/5
(85)

Which symbol indicates that a member is public in a UML diagram?

(Multiple Choice)
5.0/5
(84)

Methods that operate on an object's fields are called

(Multiple Choice)
4.9/5
(77)

It is common practice in object-oriented programming to make all of a class's

(Multiple Choice)
4.8/5
(70)

Which symbol indicates that a member is private a UML diagram?

(Multiple Choice)
4.9/5
(77)

Which of the following is not involved in identifying the classes to be used when developing an object-oriented application?

(Multiple Choice)
4.9/5
(70)

When an object is created, the attributes associated with the object are called

(Multiple Choice)
4.8/5
(80)

A group of related classes is called a(n)

(Multiple Choice)
4.9/5
(70)

When an argument is passed by value

(Multiple Choice)
4.9/5
(73)

You should not define a class that is dependent on the values of other class fields

(Multiple Choice)
4.8/5
(87)

A class's responsibilities include

(Multiple Choice)
4.9/5
(77)

"Shadowing" is the term used to describe how the field name is hidden by the name of a local or parameter variable.

(True/False)
4.9/5
(87)

A constructor is a method that is automatically called when an object is created.

(True/False)
4.9/5
(91)

Data hiding (which means that critical data stored inside the object is protected from code outside the object) is accomplished in Java by

(Multiple Choice)
5.0/5
(86)

Which is the key word used to import a class?

(Multiple Choice)
4.9/5
(74)

A constructor is a method that

(Multiple Choice)
4.9/5
(80)
Showing 1 - 20 of 40
close modal

Filters

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