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. poly2.addPoint(200, 130);
poly2.addPoint(200, 30);

Computer Science & Information Technology

You might also like to view...

If you find an error when previewing results, the error should be corrected in the ________ document

A) record B) main C) linked D) merged

Computer Science & Information Technology

Countering efforts by foreign countries to steal our nation's secrets, evaluating the capabilities of terrorists in a digital age, and ____ are the FBI's highest priorities.

A. investigating crimes involving foreign currency B. arresting local bank robbers C. fighting cyber crime D. murder

Computer Science & Information Technology