Adobe
9A0-127 · Question #16
Given the following Application.cfc file: <cfcomponent> <cfset this.name="myapp" /> <cffunction name="onRequestStart"> <cfset application.myVar = 1 /> <cfset this.myVar = 2 /> <cfset variables.myVar…
The correct answer is A. 1. See the full explanation below for the reasoning.
Question
Given the following Application.cfc file:
<cfcomponent> <cfset this.name="myapp" /> <cffunction name="onRequestStart"> <cfset application.myVar = 1 /> <cfset this.myVar = 2 /> <cfset variables.myVar = 3 /> <cfset local.myVar = 4 /> </cffunction> </cfcomponent> If accessed from a cfm page, what is the value of application.myVar?
Options
- A1
- B2
- C3
- D4
How the community answered
(50 responses)- A84% (42)
- B4% (2)
- C2% (1)
- D10% (5)
Community Discussion
No community discussion yet for this question.