MCQ Practice

An advantage of using local variables is that _____

A

they are known to all functions in the file

B

names used in one function do not affect data stored in variables with the same names in other functions

C

values given to local variables are retained when those parameters go out of scope

D

the program does not become "crowded" with too many variable names

Correct Answer: D