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