Login or Create an Account to view the mark scheme, comment, and add to a test
Consider the following recursive algorithm:
[4]function mystery(n)
if n = 0 then
return 4
else
result = 4 + mystery(n - 1)
output result
return result
end if
end function
Using the table below as a guide, trace the execution of mystery(3)
Short Answer4 MarksPremium
9 Uses17 Views0 Likes