1. What is the final value of x when the loop terminates?
32
2. What does factorial(5) return?
120
3. What does fib(7) return?
13
4. Which climber is served first by dequeue()?
"Pip"
5. What is the value of total after the loop finishes?
21
6. What value is on TOP of the stack after these operations?
47
7. What gem is on TOP of the stack after these operations?
"Ruby"
8. What is printed by accessing this dictionary key?
2
9. What is printed after calling find_max?
31
10. What does factorial(4) return?
24
11. Searching sorted numbers 1 to 100 with binary search, what is the first midpoint checked?
50
12. What is printed by this code?
"Trail"
13. What does factorial(3) return?
6
14. Searching sorted numbers 0 to 50 with binary search, what is the first midpoint checked?
25
15. What is the value of total after the loop?
25
16. What does fib(6) return?
8