Menu

Global & Local Variables - Quiz

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

Scope
Initialisation
Assignment
Declaration

2. What is meant by a global variable?

A variable that is returned from a function to the main program
A variable that can only be accessed inside the subprogram where it is created
A variable that has been passed into a subprogram as a parameter
A variable that can be accessed anywhere in a program

Log in or sign-up to access the quiz



Don't have a login?

You can still revise this topic