Recall & Review
beginner
What happens when a function is called in Python?
The program pauses at the call, jumps to the function's code, runs it, then returns to continue after the call.
Click to reveal answer
intermediate
What is the 'call stack' in function execution?
It is a structure that keeps track of active functions. Each call adds a frame; returning removes it.
Click to reveal answer
beginner
Why does a function return a value?
To send back a result to where it was called, so the program can use that result next.
Click to reveal answer
beginner
What happens if a function does not have a return statement?
It returns None by default, meaning no specific value is sent back.
Click to reveal answer
intermediate
How does Python handle nested function calls?
Python completes the innermost function first, then uses its result in the outer function call.
Click to reveal answer
What does the program do immediately after a function call?
✗ Incorrect
When a function is called, the program jumps to that function's code to run it.
What is stored in the call stack during function execution?
✗ Incorrect
The call stack keeps track of active functions and their local information.
If a function has no return statement, what does it return?
✗ Incorrect
Functions without a return statement return None by default.
In nested function calls, which function runs first?
✗ Incorrect
Python runs the innermost function first to get its result.
What happens after a function finishes executing?
✗ Incorrect
After finishing, the program continues from where the function was called.
Explain the flow of execution when a function is called in Python.
Think about what happens step-by-step from call to return.
You got /4 concepts.
Describe what the call stack is and why it is important during function calls.
Imagine a stack of plates where each plate is a function call.
You got /4 concepts.