Edexcel GCSE Computer Science 2020

6.6.3: understand the difference between and be able to write programs that make appropriate use of global and local variables

Test your self on these keywords and definitions using the games below or Play random game
global variabletype of variable which can be accessed from any block of code in a program
local variabletype of variable which can only be accessed from within the scope of a subprogram or block of code
parametervalue passed into a subprogram which then behaves like a local variable for the scope of that subprogram
scopethe block(s) of code where a variable can be accessed (either global or local)
variablenamed memory location which can store a value which can change when the program runs
Keyword games: