Question: Question 8 ( 2 points ) Consider the following mystery algorithm ` ` ` mystery ( int n ) if n = 0 ) print

Question 8(2 points)
Consider the following mystery algorithm
```
mystery ( int n )
if n =0)
print "*"
else if n %2==0
print "0"
mystery ( n-1)
print "0"
else
print "1"
mystery ( n-1)
print "1"
```
What is printed when we call mystery(4)? Assume that the double quotes are NOT printed. Enter the asnwer exactly with no spaces in between characters.
Question 8 ( 2 points ) Consider the following

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!