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);
B
You might also like to view...
Discuss strokes, including the end caps and other features offered on the Stroke panel.
What will be an ideal response?
Function definitions are placed in the ____ section of an HTML file.
A.
B. C.The selection sort algorithm finds the location of the smallest element in the unsorted portion of the list.
Answer the following statement true (T) or false (F)
Business intelligence includes technologies for extraction, integration and visualization of ____?.
Fill in the blank(s) with the appropriate word(s).