nerdexam
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)
  • A
    84% (42)
  • B
    4% (2)
  • C
    2% (1)
  • D
    10% (5)

Community Discussion

No community discussion yet for this question.

Full 9A0-127 Practice