Question: What is a difference between global variable and persistent variables?
- Global variables have a higher performance overhead than persistent variables.
- Global variables remain in memory after clear all; persistent variables do not.
- Global variables can be used to cache data in memory; persistent variables cannot.
- Global variables are accessible outside the function scope; persistent variables are not.
Answer: The correct answer of the above question is Option D:Global variables are accessible outside the function scope; persistent variables are not.