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
(37)
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
(32)
Correct Answer:
Verified

False

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

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

A

The scope of a local variable is

(Multiple Choice)
4.8/5
(40)

A method

(Multiple Choice)
4.9/5
(37)

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

(Multiple Choice)
5.0/5
(41)

Methods that operate on an object's fields are called

(Multiple Choice)
4.9/5
(37)

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

(Multiple Choice)
4.8/5
(32)

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

(Multiple Choice)
4.8/5
(31)

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
(31)

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

(Multiple Choice)
4.8/5
(36)

A group of related classes is called a(n)

(Multiple Choice)
4.8/5
(33)

When an argument is passed by value

(Multiple Choice)
5.0/5
(29)

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

(Multiple Choice)
4.8/5
(42)

A class's responsibilities include

(Multiple Choice)
4.9/5
(34)

"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.8/5
(44)

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

(True/False)
4.9/5
(46)

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
(35)

Which is the key word used to import a class?

(Multiple Choice)
4.9/5
(31)

A constructor is a method that

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

Filters

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