Menu

Local and Global Variables - Quiz

1. Which term describes the part of a program in which a variable can be used?

Parameter
Scope
Constant
Global variable

2. What is meant by a local variable?

A value that does not change while the program runs and is named in capital letters
A variable that is created in the main program and can be used by any part of the program
A variable that is created inside a sub program and can only be used while that sub program runs
A value that is passed into a sub program when it is called and is given a name

Log in or sign-up to access the quiz



Don't have a login?

You can still revise this topic