You and your friend Pat are working on a coding project to write code for ‘Triangles to Octagons’. The program randomly selects a number ranging from 3 to 8. The program will then draw a regular polygon with the number of sides ranging from 3 to 8 (triangles to octagons) as specified by the input.
Pat writes the following pseudocode:

You need to identify the functions and parameters in the pseudocode. To answer, drag the appropriate label from the column on the left to its example on the right.
Each label may be used once, more than once, or not at all.
NOTE: Each correct match is worth one point.
Select and Place:

Download Printable PDF. VALID exam to help you PASS.

Leave a Reply

Your email address will not be published. Required fields are marked *

The reCAPTCHA verification period has expired. Please reload the page.