Adobe
9A0-127 · Question #15
The following code is placed in Application.cfc, outside of any function definitions: <cfset myvariable="a value"> What is the scope and visibility of the variable?
The correct answer is D. Variables scope; visible only to code in Application.cfc. See the full explanation below for the reasoning.
Question
The following code is placed in Application.cfc, outside of any function definitions:
<cfset myvariable="a value"> What is the scope and visibility of the variable?
Options
- ARequest scope; visible to all code executed during the current page request
- BApplication scope; visible to code in all pages of the application
- CThis scope; visible as public properties of the CFC
- DVariables scope; visible only to code in Application.cfc
How the community answered
(26 responses)- A8% (2)
- B4% (1)
- C15% (4)
- D73% (19)
Community Discussion
No community discussion yet for this question.