b. Arcs sweep from a starting angle the number of degrees specified by their arc angle.
c. Arcs that sweep clockwise are measured in positive degrees.
d. None of the above statements are false.
13.6 Q2: Which of the following statements draws an arc that sweeps from the top of an
oval to the leftmost edge?
a. g.drawArc(200, 100, 100, 50, 90, 90);
b. g.drawArc(100, 200, 50, 100, 90, 180);
c. g.drawArc(100, 200, 50, 100, 180, 90);
d. g.drawArc(200, 100, 100, 50, 180, 90);
13.7 Q1: Consider the code segment below:
int xValues[] = {100, 150, 200, 100};
int yValues[] = {30, 130, 30, 30};
g.drawPolyline(xValues, yValues, 4);
What kind of figure does it draw?
a. A rectangle.
b. A triangle.
c. A V with its corner at the top.
d. A square.
13.7 Q2: 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?
a. poly2.addPoint(100, 60);
poly2.addPoint(100, 130);
b. poly2.addPoint(200, 130);
poly2.addPoint(200, 30);
c. poly2.addPoint(200, 60);
poly2.addPoint(200, 130);
d. poly2.addPoint(100, 130);
poly2.addPoint(100, 230);