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

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

The data associated with an object of a class are called __________.

(Short Answer)
4.9/5
(42)

The length method of the String class takes no argument and returns an int.

(True/False)
4.9/5
(29)

A Scanner object divides its input into sequences of characters called:

(Multiple Choice)
4.7/5
(41)

Identify when you would use nextLine( ) in the Scanner class.

(Short Answer)
4.7/5
(39)

The mutators are the _______ methods.

(Multiple Choice)
4.8/5
(42)

Using a null object reference to call a method will not generate an error.

(True/False)
4.8/5
(38)

nextDay ( ) can be used in an expression (the method header is public void nextDay( ) ).

(True/False)
4.7/5
(44)

API stands for __________.

(Short Answer)
4.8/5
(29)

What would you automatically use to assign the char variable to a Character object reference?

(Essay)
4.7/5
(33)

Many of the commonly used classes, such as String and Math, reside in the java.lang package.

(True/False)
4.9/5
(34)

The _________ class is used to get user input from the Java console.

(Short Answer)
4.9/5
(31)

The special method called when instantiating an object is a(n) __________.

(Short Answer)
4.9/5
(44)

The DecimalFormat can be used to format a number by specifying a number of digits after the decimal point.

(True/False)
4.8/5
(37)

The parameter list of a default constructor is empty.

(True/False)
4.8/5
(30)

The data type of System.out is:

(Multiple Choice)
4.8/5
(30)

The charAt method returns the character at a particular index in a String.

(True/False)
4.8/5
(36)

The constructor for the Random class is:

(Multiple Choice)
4.7/5
(37)

A way to convert a primitive data type into an object is to use __________ classes.

(Short Answer)
4.9/5
(40)

indexOf methods are useful for searching a String for a specific String or character.

(True/False)
4.8/5
(32)

Java classes are organized in __________.

(Short Answer)
4.8/5
(40)
Showing 41 - 60 of 62
close modal

Filters

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