Adobe
9A0-127 · Question #46
By using the <cfset> tag, you declare variables inside the onApplicationStart() method in the Application.cfc file. The variables are declared without any specific scope or var keyword. Which…
The correct answer is C. The local scope for the Application.cfc file including all its methods. See the full explanation below for the reasoning.
Question
By using the <cfset> tag, you declare variables inside the onApplicationStart() method in the Application.cfc file. The variables are declared without any specific scope or var keyword. Which variable scope is assigned for the variables?
Options
- AThe request scope for the Application.cfc file.
- BThe application scope for the entire application.
- CThe local scope for the Application.cfc file including all its methods.
- DThe server scope.
How the community answered
(15 responses)- A7% (1)
- B7% (1)
- C73% (11)
- D13% (2)
Community Discussion
No community discussion yet for this question.