Exam 6: A First Look at Classes

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

Methods that operate on an object's fields are called:

(Multiple Choice)
4.9/5
(34)

Look at the following statement. import java.util.*; This is an example of:

(Multiple Choice)
4.8/5
(24)

Overloading means multiple methods in the same class:

(Multiple Choice)
4.8/5
(35)

This refers to the combining of data and code into a single object.

(Multiple Choice)
4.7/5
(31)

In UML diagrams, this symbol indicates that a member is private:

(Multiple Choice)
4.8/5
(32)

The scope of a public instance field is:

(Multiple Choice)
4.8/5
(32)

A class specifies the ________ and ________ that a particular type of object has.

(Multiple Choice)
4.8/5
(39)

In your textbook the general layout of a UML diagram is a box that is divided into three sections. The top section has the ________; the middle section holds ________; the bottom section holds ________.

(Multiple Choice)
4.7/5
(34)

The term "no-arg constructor" is applied to any constructor that does not accept arguments.

(True/False)
5.0/5
(44)

Quite often you have to use this statement to make a group of classes available to a program.

(Multiple Choice)
4.9/5
(40)

A class in not an object, but a description of an object.

(True/False)
4.7/5
(31)

This is a group of related classes.

(Multiple Choice)
4.7/5
(39)

Two or more methods in a class may have the same name as long as:

(Multiple Choice)
4.8/5
(33)

An object can store data.

(True/False)
4.9/5
(31)

In a UML diagram to indicate the data type of a variable enter:

(Multiple Choice)
4.8/5
(35)

Which of the following statements will create a reference, str, to the String, "Hello, World"?

(Multiple Choice)
4.7/5
(40)

Java allows you to create objects of this class in the same way you would create primitive variables.

(Multiple Choice)
4.8/5
(31)

For the following code, which statement is NOT true? Public class Circle { Private double radius; Public double x; Private double y; }

(Multiple Choice)
5.0/5
(39)

Another term for an object of a class is:

(Multiple Choice)
4.9/5
(37)

The java.lang package is automatically imported into all Java programs.

(True/False)
4.9/5
(46)
Showing 21 - 40 of 58
close modal

Filters

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