1. What happens to a local variable when afunction call completes (and control returns to the callingstatement)?
A local variable retains its value until thenext time the function is called
A local variable becomes undefined after thefunction call completes
The local variable can be used outside the function any timeafter the function call completes.
My answer is The local variable can beused outside the function any time after the function callcompletes.
2.A variable that is visible to every functionin a program file is a(an)
local variable
parameter
global variable
argument
My answer is parameter
3. In the following function definition, whatdo we call x?
def show_cube_root(x):
ans = x ** (1.0/3.0)
print(‘The
OR
OR