Exam 3: Introduction to Objects and Inputoutput

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

If length denotes the length of a nonnull string, then length - 1 gives the index of the last character in the string.

(True/False)
5.0/5
(22)

Given a decimal number, the method format of the class String returns the string containing the digits of the formatted number.

(True/False)
4.7/5
(42)

The default output of decimal numbers of the type float is up to nine decimal places.

(True/False)
4.8/5
(34)

Suppose the String variable str points to the String object "Sunny day" at the memory address 3600. Then the value of str is:

(Multiple Choice)
4.9/5
(34)

The class JOptionPane allows a programmer to use graphical interface components to obtain input from a user.

(True/False)
4.9/5
(37)

To use the contents of the java.lang package in a program, they must be imported using the import statement.

(True/False)
4.8/5
(26)

String objects are mutable.

(True/False)
4.7/5
(35)

Based on the code above, what is the value of str1?

(Multiple Choice)
4.8/5
(36)

Which of the following is the member access operator?

(Multiple Choice)
4.8/5
(48)

The class JOptionPane is part of the package java.swing.

(True/False)
4.9/5
(34)
Showing 41 - 50 of 50
close modal

Filters

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