Multiple choice technology architecture

Which statement about Local Variables is true?

  1. (a) They are stored on the clipboard as temporary variables

  2. (b) They exist only within the context of an activity

  3. (c) They can be stored in the database

  4. (d) They are stored in a named page that is created automatically

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Local Variables in programming exist only within the context of a specific activity, function, or block. They are created when that context is entered and destroyed when it exits. They are not stored on the clipboard, not automatically stored in databases, and not stored in automatically created pages. Their scope is limited to their defining context.