Multiple Choice
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) ;
Correct Answer:

Verified
Correct Answer:
Verified
Q1: Which of the following is correct for
Q2: Which of the following statements about arcs
Q4: In the Java coordinate system, the point
Q5: Method getFont of class Graphics returns _.<br>A)
Q6: A general path is _.<br>A) a set
Q7: Which of the following statements about the
Q8: Which of the following statements about the
Q9: Which of the following are valid Java
Q10: Which of the following statements is false?<br>A)
Q11: The JColorChooser dialog allows colors to be