Attempt the question, check the explanation, and continue with similar questions to build confidence before exams.
Global variables can be changed; local cannot
Local variables survive after function execution; global do not
Global variables are accessible anywhere; local are not
Local variables are defined in the global scope
Video Explanation
Watch Video Solution
Login to get access
Continue with nearby questions to strengthen the same chapter concept while you still have the context fresh in mind.