Exam 3: Introduction to Classes, Objects, Methods and Strings

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

The format specifier ________ is used to output values of type float or double.

(Multiple Choice)
5.0/5
(67)

A key part of enabling the JVM to locate and call method main to begin the app's execution is the ________ keyword, which indicates that main can be called without first creating an object of the class in which the method is declared.

(Multiple Choice)
4.9/5
(80)

When a method terminates, the values of its local variables are ________.

(Multiple Choice)
4.9/5
(78)

You can declare new classes as needed; this is one reason Java is known as a(n) ________ language.

(Multiple Choice)
5.0/5
(95)

Which of the following statements is true?

(Multiple Choice)
5.0/5
(89)

Each class you create becomes a new ________ that can be used to declare variables and create objects.

(Multiple Choice)
4.8/5
(80)

If a class does not define constructors, the compiler provides a default constructor with no parameters, and the class's instance variables are initialized to ________.

(Multiple Choice)
4.8/5
(87)

The format specifier %.2f specifies that two digits of precision should be output ________ in the floating-point number.

(Multiple Choice)
4.8/5
(78)

A __________ of a class called MyClass is another class whose methods call the methods of MyClass.

(Multiple Choice)
4.8/5
(84)

Which of the following statements is false?

(Multiple Choice)
4.9/5
(87)

Which of the following statements is true?

(Multiple Choice)
4.8/5
(101)

Which of the following statements is false?

(Multiple Choice)
4.8/5
(72)
Showing 21 - 32 of 32
close modal

Filters

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