Presentation is loading. Please wait.

Presentation is loading. Please wait.

I>clicker Session 8.

Similar presentations


Presentation on theme: "I>clicker Session 8."— Presentation transcript:

1 i>clicker Session 8

2 1. How many times will the function factorial execute if we call it with the test data 7 from the main program? Infinitely 7 times n-1 times n+1 times None of the above

3 2. Imagine factorial is called from the main program with the test data 5. What is the value returned from the 4th execution of factorial to its 3rd execution? 120 24 6 2 None of the above

4 3. Imagine factorial is called from the main program with the test data 5. What is the value of n during the 2nd execution of factorial? 2 1 3 5 None of the above

5 4. Imagine factorial is called from the main program with the test data 8. What is the value of result during the 8th execution of factorial? 40320 (i.e., 8!) 8 1 None of the above

6 5. Imagine factorial is called from the main program with the test data 3. What is the value returned to the main program? 6 12 1 None of the above


Download ppt "I>clicker Session 8."

Similar presentations


Ads by Google