Exam 2: Using Objects

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

The input to a method is called a(n) _______________.

(Multiple Choice)
4.9/5
(35)

Which method checks whether a point lies within the rectangle?

(Multiple Choice)
4.9/5
(37)

Based on the following code, which of the following statements sets the frame to a width of 400 and a height of 200: final int FRAME_WIDTH = 400; Final int FRAME_HEIGHT = 200; JFrame frame = new JFrame();

(Multiple Choice)
4.8/5
(23)

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

(Multiple Choice)
4.8/5
(24)

Place drawing instructions inside the __________ method, which is called whenever the component needs to be repainted.

(Multiple Choice)
4.8/5
(37)

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

(Multiple Choice)
4.8/5
(28)

Which is not a method of the String class?

(Multiple Choice)
4.8/5
(35)

By convention, variables begin with a(n) _____________.

(Multiple Choice)
4.9/5
(42)

Which of the following statements about classes is correct?

(Multiple Choice)
4.9/5
(36)

Complete this code fragment to ensure that the frame is shown: JFrame frame = new JFrame();

(Multiple Choice)
4.8/5
(42)

What is the output of the following code: Int num1 = 6; Int num2 = 10; num1 = num2; num2 = num1; System.out.println(num1 + ", " + num2);

(Multiple Choice)
4.9/5
(47)

Which statement declares a variable that references a Circle of radius 3?

(Multiple Choice)
4.8/5
(37)

Assuming the following Java statement: Int num = 10; What does the variable num store?

(Multiple Choice)
4.7/5
(36)

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

(Multiple Choice)
4.8/5
(38)

Which statement declares a variable that will store an integer value?

(Multiple Choice)
4.7/5
(38)

Which of the following statements about methods is correct?

(Multiple Choice)
4.8/5
(37)

What is the type of an object?

(Multiple Choice)
4.9/5
(37)

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

(Multiple Choice)
4.9/5
(37)

Which class is part of the java.lang package?

(Multiple Choice)
4.9/5
(35)

What does API stand for?

(Multiple Choice)
4.9/5
(42)
Showing 41 - 60 of 76
close modal

Filters

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