nerdexam
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)
  • A
    8% (2)
  • B
    4% (1)
  • C
    15% (4)
  • D
    73% (19)

Community Discussion

No community discussion yet for this question.

Full 9A0-127 Practice