stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Computer Science 1: Chapter 16 Graphics Review Flashcards | StudBud
Explore
/
Computer Science 1: Chapter 16 Graphics Review
Computer Science 1: Chapter 16 Graphics Review
11 terms
·
StudBud Administration
·
255 plays
computer programming chapter 16 basics of graphics in Java #java #graphics two dimensional
Flashcards
11 cards
F
Practice quiz
P
Host live
L
Questions
11
Answers
1
Graphics coordinates in Java have the origin (0,0) in the ____ corner of the drawing area.
lower-right
upper-left
upper-right
lower-left
2
When an object derived from JPanel needs to repaint itself, which method does it call?
repaintComponent( )
repaint( )
paintComponent(g)
paint(g)
3
What font styles does Java NOT support?
all 3 are supported
plain
italic
bold
4
For drawing shapes, the first two parameters listed are usually for...
the numeric values for the red and green color aspects
the lower right corner of the shape
the width and height of the shape
the upper left corner of the shape
5
g.drawArc(A, B, C, D, E, F): For this line of code, what does 'E' represent?
the width
the angular extent of the arc
the height
the starting angle
6
What are the default units for coordinates in the Graphics?
millimeters
yards
inches
pixels
7
Which of the following is true about the 'paint' method?
it is the same as the 'paintComponent' method
can be called directly from your Java program
automatically called in response to certain messages
requires parameters for the x and y values (position)
8
What does 'A' represent in this code: g.fill3DRect(A,B,C,D,E);
the y value starting position
the x value starting position
the height
the width
9
Which of the following is NOT a valid drawing method of the Graphics class?
fillOval
drawCircle
fillArc
drawTriangle
10
Which one of the following capabilities is NOT supported by the Graphics class?
rotating the coordinate frame
drawing filled polygons
shifting the origin in the coordinate frame
different font sizes
11
What does 'D' represent in this code: g.fill3DRect(A,B,C,D,E);
the y value starting position
the width
the x value starting position
the height