Solved

Case Study 2: Def Sierpinski(myTurtle, P1, P2, P3, Depth)

Question 24

Multiple Choice

Case Study 2:
def sierpinski(myTurtle, p1, p2, p3, depth) :
if depth > 0:
sierpinski(myTurtle, p1,
midPoint(p1, p2) , midPoint(p1, p3) , depth - 1)
sierpinski(myTurtle, p2,
midPoint(p2, p3) , midPoint(p2, p1) , depth - 1)
sierpinski(myTurtle, p3,
midPoint(p3, p1) , midPoint(p3, p2) , depth - 1) else:
drawTriangle(myTurtle, p1, p2, p3)
-Refer to the session in the accompanying Case Study 2. Which parameter to the sierpinski function is reduced during the recursive step?


A) p1
B) p2
C) p3
D) depth

Correct Answer:

verifed

Verified

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

Related Questions