Exam 15: Graphics and Java 2d

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

Which of the following statements is false?

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

A

Consider the Java code segment below: Polygon poly2 = new Polygon(); Poly2.addPoint( 100,30 ); Poly2.addPoint( 100,130 ); Which of the following will create a polygon that is a square?

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

B

A general path is:

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

B

The JColorChooser dialog allows colors to be chosen by all but which of the following?

(Multiple Choice)
4.8/5
(38)

Method getFont of class Graphics returns:

(Multiple Choice)
4.9/5
(29)

Which of the following statements about the Graphics object is true? a)The Graphics object is an argument to class Component's repaint method. b)The Graphics object is instantiated by the user. c)The Graphics object is the argument to a lightweight GUI component's paintComponent method. d)The Graphics class is abstract. e)The Graphics object manages a graphics context.

(Multiple Choice)
4.7/5
(39)

The fact that class Graphics is abstract contributes to Java's portability because:

(Multiple Choice)
4.9/5
(36)

Which of the following properly create and initialize a Font object? a)Font f = new Font(); b)Font f = new Font( "Serif",Font.Bold + ont.Italic,19 ); c)Font f = new Font( Font.Bold,20,"SansSerif" ); d)Font f = new Font( 20,Font.Bold,"Monospaced" );

(Multiple Choice)
4.9/5
(42)

GeneralPath method lineTo

(Multiple Choice)
4.8/5
(39)

Class FontMetrics declares methods that can be used to obtain the following font metrics:

(Multiple Choice)
4.8/5
(34)

The Graphics2D method(s)that determine(s)the color and texture for the shape to display is/are:

(Multiple Choice)
4.7/5
(35)

Which of the following statements about arcs is false?

(Multiple Choice)
4.8/5
(40)

In the Java coordinate system,the point (0,0)is:

(Multiple Choice)
5.0/5
(37)

Which of the following is correct for font metrics?

(Multiple Choice)
4.9/5
(49)

Which of the following statements about the Java 2D API is true?

(Multiple Choice)
4.8/5
(38)
close modal

Filters

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