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

Computer Science & Information Technology

You might also like to view...

The action of placing cell contents that have been copied or moved to the Clipboard intoanother location is called:

a. find and replace b. paste c. freeze panes

Computer Science & Information Technology

Explain the difference between an inner join and outer join. Why is it important to understand joins when trying to retrieve data for decision making?

What will be an ideal response?

Computer Science & Information Technology