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...

Critical Thinking QuestionsCase F-1Cadence is the web master for the XYZ Corporation. She knows that links are the real strength of a website. She has created a navigation bar using a group of text links that helps viewers navigate between pages of the company's site. She has started working on the site's link structure and is adding an image map as well as button images. Cadence notices that a link does not work correctly. What is the first thing she should check?

A. Check the Site Map options B. Check the Files panel C. Check for typing errors in the link path D. Check for a broken link

Computer Science & Information Technology

To help protect your computer, Outlook does not allow you to received files as attachments if they are a certain file type.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

?All block elements, like the body element, have a default width of _____.

A. ?50% B. ?150% C. ?0% D. ?100%

Computer Science & Information Technology

_____ is the style sheet standard developed for use with HTML on the web.

A. ?XSL B. ?XSM C. ?CSS D. ?MSXML

Computer Science & Information Technology