Exam 2: Using Objects

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

The value calculated by a method is called its _____ value.

(Multiple Choice)
4.9/5
(35)

Drawing instructions should be placed inside the ____ method, which is called whenever the component needs to be repainted.

(Multiple Choice)
4.8/5
(31)

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

(Multiple Choice)
4.8/5
(38)

Which of the following constructs a Circle of radius 3, assuming the construction parameter is the radius value?

(Multiple Choice)
4.8/5
(30)

Which of the following declares a variable that will store a measurement with fractional parts?

(Multiple Choice)
4.9/5
(33)

Assuming the following Java statement: Circle c1 = new Circle(3); What does the variable c1 store?

(Multiple Choice)
4.8/5
(32)

What is the name of the type that denotes a string of characters?

(Multiple Choice)
4.8/5
(45)

What term is used to refer to text in a program that is an explanation for human readers of the code?

(Multiple Choice)
4.7/5
(34)

A method is a sequence of ___ that accesses the data of an object.

(Multiple Choice)
4.7/5
(37)

What does API stand for?

(Multiple Choice)
4.9/5
(45)

The setVisible method of the JFrame class returns what kind of argument?

(Multiple Choice)
4.8/5
(25)

A(n) _____________ is a collection of classes with a related purpose.

(Multiple Choice)
4.9/5
(27)

Complete the following statement, which constructs an ellipse. Ellipse2D.Double ellipse = new ____________________ (x, y, width, height);

(Multiple Choice)
4.7/5
(32)

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

(Multiple Choice)
4.8/5
(40)

Which statement calls a constructor with no construction arguments?

(Multiple Choice)
4.8/5
(35)

Which statement about identifiers is correct?

(Multiple Choice)
4.8/5
(31)

Which of the following statements about methods is correct?

(Multiple Choice)
4.7/5
(45)

In the code below, write a statement that sets the graphic to green. In the code below, write a statement that sets the graphic to green.

(Multiple Choice)
4.7/5
(33)

If greeting is a String object, which method call is incorrect?

(Multiple Choice)
4.8/5
(39)

Assuming that the variable count has been declared as type int, which statement changes the value of count?

(Multiple Choice)
4.7/5
(40)
Showing 61 - 80 of 82
close modal

Filters

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