nerdexam
Adobe

9A0-127 · Question #27

A CFC file named MyComponent.cfc is stored in the cfc subfolder of the web server's document root folder. Which <cfscript> statement correctly creates an instance of the CFC?

The correct answer is B. comp = new cfc.MyComponent(). See the full explanation below for the reasoning.

Question

A CFC file named MyComponent.cfc is stored in the cfc subfolder of the web server's document root folder. Which <cfscript> statement correctly creates an instance of the CFC?

Options

  • Acomp = new cfc.MyComponent;
  • Bcomp = new cfc.MyComponent();
  • Ccomp = cfc.MyComponent();
  • Dcomp = createObject("cfc.MyComponent");

How the community answered

(27 responses)
  • A
    15% (4)
  • B
    74% (20)
  • C
    4% (1)
  • D
    7% (2)

Community Discussion

No community discussion yet for this question.

Full 9A0-127 Practice