Solved

Given the Following Function Definition, Which of the Statements Below

Question 4

Multiple Choice

Given the following function definition, which of the statements below produces a square?
Def drawPolygon(myTurtle, sideLength, numSides) :
TurnAngle = 360 / numSides
For i in range(numSides) :
MyTurtle.forward(sideLength)
MyTurtle.right(turnAngle)


A) drawPolygon(t, 100, 4)
B) drawPolygon(t, 100, 8)
C) drawPolygon(t, 50, 20)
D) drawPolygon(t, 20, 20)

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions