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

Discuss strokes, including the end caps and other features offered on the Stroke panel.

What will be an ideal response?

Computer Science & Information Technology

Function definitions are placed in the ____ section of an HTML file.

A. B. C. D. <br> </p> </div> <div class="d-flex justify-content-between align-items-center"> <div class="btn-group"> <a href="https://sciemce.com/qa/LSjpoZuubKct" class="btn btn-sm btn-dark px-3">View</a> </div> <span class="badge bg-secondary">Computer Science & Information Technology</span> </div> </div> </div> </div> <div class="col"> <div class="card shadow-sm"> <div class="card-body"> <div class="card-area-ad"> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5615111067852633" crossorigin="anonymous"></script> <!-- Square 5 --> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-5615111067852633" data-ad-slot="7303124573" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> </div> </div> </div> <div class="col"> <div class="card shadow-sm"> <div class="card-body"> <div class="card-area mb-2"> <p class="card-text">The selection sort algorithm finds the location of the smallest element in the unsorted portion of the list. </p> <p class="card-text">Answer the following statement true (T) or false (F)</p> </div> <div class="d-flex justify-content-between align-items-center"> <div class="btn-group"> <a href="https://sciemce.com/qa/veHEf8AI9zPB" class="btn btn-sm btn-dark px-3">View</a> </div> <span class="badge bg-secondary">Computer Science & Information Technology</span> </div> </div> </div> </div> <div class="col"> <div class="card shadow-sm"> <div class="card-body"> <div class="card-area mb-2"> <p class="card-text">Business intelligence includes technologies for extraction, integration and visualization of ____?. </p> <p class="card-text">Fill in the blank(s) with the appropriate word(s).</p> </div> <div class="d-flex justify-content-between align-items-center"> <div class="btn-group"> <a href="https://sciemce.com/qa/F8tFOVudawKX" class="btn btn-sm btn-dark px-3">View</a> </div> <span class="badge bg-secondary">Computer Science & Information Technology</span> </div> </div> </div> </div> </div> </div> </div> </main> <footer class="text-body-secondary py-4"> <div class="container"> <div class="row"> <div class="col-md-6"> <p class="mb-1 text-center">Sciemce: Your Gateway to Quick, Reliable Answers.</p> </div> <div class="col-md-6"> <p class="mb-1 text-center"> <a href="https://sciemce.com/honor/" class="text-decoration-none">Honor Code</a> | <a href="https://sciemce.com/privacy/" class="text-decoration-none">Privacy Policy</a> </p> </div> </div> </div> </footer> <script src="https://sciemce.com/assets/js/bootstrap.bundle.min.js"></script> </body> </html>