Exam 6: Introduction to Defining Classes

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

When a new class is created, it includes the characteristics of its superclass through a process called inheritance. ____________________

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

True

An argument is a value passed to a method when it is invoked. ____________________

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

True

Defining a(n) ____ for a shape allows a user to manipulate it by changing its color, position, or size.

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

A

Identify the letter of the choice that best matches the phrase or definition. a.Garbage collection b.Reference type c.Public d.Information hiding e.Helper method -Includes String, Student, Scanner, and other classes.

(Essay)
4.8/5
(43)

All classes have a similar structure, consisting of all of the below parts EXCEPT ____.

(Multiple Choice)
4.9/5
(37)

When a Java program is executing, the computer's memory is holding all of the following EXCEPT ____.

(Multiple Choice)
4.8/5
(34)

In a method, the return type should be ____ when the method returns no value.

(Multiple Choice)
4.7/5
(35)

It is the role of ____ to contain data and to respond to messages.

(Multiple Choice)
4.9/5
(38)

A constructor method indicates how to initialize a new object.

(True/False)
4.8/5
(36)

A(n) ____________________ is a description of a task that is performed in response to a message.

(Short Answer)
4.9/5
(39)

Do not use a variable until you have assigned its initial value.

(True/False)
5.0/5
(29)

When sending messages, a client only needs to know the server's identity. ____________________

(True/False)
4.8/5
(32)

An object has ____, as defined by the methods of its class.

(Multiple Choice)
4.9/5
(47)

Identify the letter of the choice that best matches the phrase or definition. a.Garbage collection b.Reference type c.Public d.Information hiding e.Helper method -Used when a task is broken into subtasks.

(Essay)
4.8/5
(30)

In the hierarchy of Java classes, if class A is immediately above class B, A is the subclass or child of class B.

(True/False)
4.7/5
(42)

When a Java program is executing, memory for data is allocated within objects.

(True/False)
4.8/5
(32)

FIGURE 6-1 FIGURE 6-1   -Figure 6-1 above shows the Student variable before and after it has been assigned the value ____. -Figure 6-1 above shows the Student variable before and after it has been assigned the value ____.

(Multiple Choice)
4.9/5
(30)

A(n) ____________________ is a software package or template that describes the characteristics of similar objects.

(Short Answer)
4.8/5
(33)

Class definitions usually begin with the keyword private.

(True/False)
4.8/5
(36)

A class template can include more than one constructor, provided each has a unique parameter list.

(True/False)
4.8/5
(29)
Showing 1 - 20 of 46
close modal

Filters

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