Exam 3: Object-Oriented Programming, Part 1: Using Classes

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

One can generate random numbers using the ___________ class.

Free
(Short Answer)
4.9/5
(36)
Correct Answer:
Verified

Random

The identifier of the object is called the:

Free
(Multiple Choice)
4.8/5
(44)
Correct Answer:
Verified

C

In Math.abs( -5 ), abs is a static method.

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

True

What is the relationship between an object and a class?

(Multiple Choice)
4.7/5
(33)

Object references can refer to any object of its class.

(True/False)
4.8/5
(35)

Give one reason you would use the NumberFormat class.

(Short Answer)
4.9/5
(35)

E and PI are two static data members of the Math class.

(True/False)
4.8/5
(33)

In which package is the class NumberFormat?

(Multiple Choice)
4.8/5
(27)

What keyword is used when instantiating an object?

(Multiple Choice)
4.8/5
(39)

We can instantiate an object from the NumberFormat class using the new keyword.

(True/False)
4.8/5
(33)

In which package is the class Math?

(Multiple Choice)
4.9/5
(30)

Java does not provide support for explicitly deleting an object.

(True/False)
4.9/5
(47)

What does the following code do? String s = "Hello"; s = s.toUpperCase( );

(Short Answer)
4.8/5
(38)

The System class is in the java.lang package.

(True/False)
4.9/5
(40)

The wrapper class for char is Char.

(True/False)
4.8/5
(34)

DaysOffWork ( ) a default constructor because its parameter list is empty.

(True/False)
4.7/5
(33)

Computers are deterministic, so given a specific input to a specific set of instructions, a computer will always produce the same output.

(True/False)
4.9/5
(40)

The API of class methods has the keyword __________ before the return type.

(Short Answer)
4.8/5
(40)

The argument list of a constructor consists of a comma-separated list of initial data values to assign to the object.

(True/False)
4.8/5
(41)

The operations for a class are called __________.

(Short Answer)
4.9/5
(27)
Showing 1 - 20 of 62
close modal

Filters

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