Exam 2: Using Objects

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

What is the output of the following code: What is the output of the following code:

Free
(Multiple Choice)
4.9/5
(36)
Correct Answer:
Verified

A

The type of an object is given by its ______ ?

Free
(Multiple Choice)
5.0/5
(37)
Correct Answer:
Verified

D

What is the nickname for the graphical user interface library in Java?

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

D

Which statement declares a variable that references a Circle of radius 3, assuming the construction parameter is the radius value?

(Multiple Choice)
4.9/5
(34)

Which statement stores an integer value in a variable?

(Multiple Choice)
4.9/5
(40)

What is the name of the = operator in Java?

(Multiple Choice)
4.7/5
(40)

In Java, a comment on a line begins with which characters?

(Multiple Choice)
4.8/5
(40)

Which class is part of the java.lang package?

(Multiple Choice)
4.8/5
(43)

Which of the following declares a variable that will store a welcome message?

(Multiple Choice)
4.7/5
(43)

The Java compiler ignores any text between ____.

(Multiple Choice)
4.7/5
(32)

Which import statement allows for the use of the Rectangle class?

(Multiple Choice)
4.8/5
(23)

Which of the following represents a method call to a method with a void return type?

(Multiple Choice)
4.8/5
(46)

Input to a method, enclosed in parentheses after the method name, is known as ______________.

(Multiple Choice)
4.9/5
(37)

To use a class in another package you need to ________ it.

(Multiple Choice)
4.9/5
(39)

What is the declared return type for a method that does not have a return value?

(Multiple Choice)
4.9/5
(39)

"System.out" is an example of which class?

(Multiple Choice)
5.0/5
(27)

Based on the following statement, which of the following statements sets the title of the frame: JFrame frame = new JFrame();

(Multiple Choice)
4.9/5
(32)

Which method call represents the invocation of a method that does not have arguments?

(Multiple Choice)
4.8/5
(43)

Which operator constructs object instances?

(Multiple Choice)
5.0/5
(34)

Assume that the variable count has been declared as type int.Which statement adds 10 to count?

(Multiple Choice)
4.8/5
(32)
Showing 1 - 20 of 82
close modal

Filters

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