Exam 6: Introduction to Defining Classes

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

Messages that change an object's state are called ____________________.

(Short Answer)
4.8/5
(38)

A(n) ____ is a runtime entity that contains data and responds to messages.

(Multiple Choice)
4.8/5
(40)

All of the following are true about constructors, EXCEPT ____.

(Multiple Choice)
4.9/5
(41)

Java programmers must instruct the program to delete objects explicitly.

(True/False)
4.8/5
(40)

____ is used to set up a skeletal, incomplete, but running program during program development.

(Multiple Choice)
4.7/5
(37)

A program can detect and respond to mouse events by attaching ____ objects to a panel.

(Multiple Choice)
4.8/5
(38)

In the hierarchy of Java classes, at the root of the hierarchy is a class called ____.

(Multiple Choice)
4.8/5
(42)

When a class includes several constructors, the code for them can be simplified by ____ them.

(Multiple Choice)
4.8/5
(38)

An object must have its own unique identity, which distinguishes it from all other objects in the computer's memory. ____________________

(True/False)
4.7/5
(42)

Parameters listed in a method's definition are called ____ parameters.

(Multiple Choice)
4.9/5
(33)

In the code ____, i and j are memory locations that have not yet been initialized, but which will hold integers.

(Multiple Choice)
4.7/5
(35)

The combining of data and behavior into a single software package is called ____.

(Multiple Choice)
4.8/5
(31)

The purpose of a message is to pass information to a method.

(True/False)
4.9/5
(28)

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 -A process in which unreferenced objects are removed from memory.

(Essay)
4.9/5
(50)

A variable of a primitive type is thought of as a box that contains a pointer to an object. ____________________

(True/False)
4.9/5
(32)

Finding run-time errors in a program is more difficult when there are several classes instead of just one.

(True/False)
4.8/5
(41)

An object has ____________________, which is another way of saying that at any particular moment its instance variables have particular values.

(Short Answer)
4.7/5
(26)

Variables declared within any compound statement enclosed in braces are said to have ____ scope.

(Multiple Choice)
4.8/5
(36)

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 -A type of visibility modifier.

(Essay)
5.0/5
(37)

The process of creating a new object is called ____.

(Multiple Choice)
4.8/5
(33)
Showing 21 - 40 of 46
close modal

Filters

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