nerdexam
Adobe

9A0-127 · Question #31

You have a variable declared with the var keyword. You want to ensure that its visibility is limited to the function. Where must you place the variable in a CFC function to accomplish this?

The correct answer is A. anywhere inside the function. See the full explanation below for the reasoning.

Question

You have a variable declared with the var keyword. You want to ensure that its visibility is limited to the function. Where must you place the variable in a CFC function to accomplish this?

Options

  • Aanywhere inside the function
  • Binside the function, but before any other functional code
  • Cinside a pair of <cfscript> tags
  • Dinside the CFC, but outside the function

How the community answered

(20 responses)
  • A
    70% (14)
  • B
    15% (3)
  • C
    10% (2)
  • D
    5% (1)

Community Discussion

No community discussion yet for this question.

Full 9A0-127 Practice