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
Q9: Which of the following statements about arcs
Q10: The JColorChooser dialog allows colors to be
Q11: In the Java coordinate system, the point
Q12: Which of the following statements about the
Q13: Class FontMetrics declares methods that can be
Q14: Which of the following statements about the
Q15: A general path is _.
A) a set
Q16: The Graphics2D method(s) that determine(s) the color
Q17: Which of the following are valid Java
Q18: Consider the code segment below:
int xValues[]
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents