Question
A variable created inside a function cannot normally be accessed outside it. Which concept explains this?
Select an option. Your answer will be checked instantly.
Correct Answer: A. Local scope
Explanation:
Names assigned inside a function are usually local to that function’s execution context. This separation prevents unintended interference with names elsewhere in the program.
Leave a Reply