Menu

Global & Local Variables - Match-up

Match-up definitions and answers with key terms and examples. Press submit to check your answers.

Local variable
Global variable
Scope
Global keyword


Answers
The parts of a program in which a variable, constant or subprogram is recognised and can be used.
A variable declared inside a subprogram that can only be used and changed within that subprogram.
A variable declared in the main program that can be accessed and changed anywhere in the program.
Used inside a subprogram to refer to and change a variable declared in the main program.
Log in or sign-up to access the match-up activity



Don't have a login?

You can still revise this topic