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
Q5: Method getFont of class Graphics returns _.<br>A)
Q8: Which of the following statements about the
Q9: Which of the following are valid Java
Q9: Consider the code segment below:<br>Int xValues[] =
Q10: Which of the following statements is false?<br>A)
Q11: The Java statement:g.fillOval(290,100,90,55);<br>A)Draws a filled oval with
Q13: GeneralPath method lineTo _.<br>A) draws a line
Q14: The fact that class Graphics is abstract
Q18: Which of the following properly create and
Q19: The Graphics2D method(s)that determine(s)the color and texture