Which statement about local variables is true?
-
(a) They are stored on the clipboard as temporary variables
-
(b) They exist only within the context of an activity
-
(c) They can be stored in the database
-
(d) They are stored in a named page that is created automatically
Local variables in Pega are activity-specific. They exist only during the execution of that activity and are not stored persistently. They are not stored on the clipboard as temporary variables (A), cannot be stored in the database (C), and are not stored in automatically created named pages (D). Their scope is strictly limited to the activity context.
Local variables in this context are scoped to a single activity's execution — they hold temporary values used only while that activity runs and are discarded afterward. They are not persisted to the database, stored on a clipboard page permanently, or auto-saved to a named page; that's the role of clipboard pages and page properties instead.