Multiple Choice
Case Study 1:
1. def drawSquare(aTurtle, side) :
2. for i in range(4) :
3. aTurtle.forward(side)
4. aTurtle.right(90)
5.
6. def nestedBox(aTurtle, side) :
7. if side >= 1:
8. drawSquare(aTurtle, side)
9. nestedBox(aTurtle, side - 5)
-Refer to the session in the accompanying Case Study 1. What happens when side is equal to zero?
A) A square of side length zero is drawn.
B) nestedBox returns without doing anything.
C) drawSquare is executed.
D) An infinite recursion occurs.
Correct Answer:

Verified
Correct Answer:
Verified
Q23: A fractal is similar to itself at
Q24: Case Study 2:<br>def sierpinski(myTurtle, p1, p2, p3,
Q25: Case Study 3:<br>Axiom A<br>Rules A → B<br>B
Q26: Case Study 1:<br>1. def drawSquare(aTurtle, side):<br>2. for
Q27: Case Study 3:<br>Axiom A<br>Rules A → B<br>B
Q28: Describe the purpose of the recursive step
Q29: Case Study 2:<br>def sierpinski(myTurtle, p1, p2, p3,
Q30: How many recursive steps are used to
Q31: Case Study 4:<br>1. Draw a trunk that
Q33: Match each definition with its phrase.<br>-Formal mathematical