nerdexam
Adobe

9A0-127 · Question #37

Your application utilizes ColdFusion components organized into folders. The User.cfc file is stored in the vo folder inside the app directory of your webroot. Which tag instantiates the User.cfc and…

The correct answer is B. <cfset myuser = createObject('component','app.vo.User') />. See the full explanation below for the reasoning.

Question

Your application utilizes ColdFusion components organized into folders. The User.cfc file is stored in the vo folder inside the app directory of your webroot. Which tag instantiates the User.cfc and stores it in the myuser variable?

Options

  • A<cfset myuser = createObject('app.vo.User') />
  • B<cfset myuser = createObject('component','app.vo.User') />
  • C<cfset myuser = createObject('component',"app/vo/User" />
  • D<cfset myuser = createObject('component',"User") />

How the community answered

(23 responses)
  • A
    4% (1)
  • B
    83% (19)
  • C
    4% (1)
  • D
    9% (2)

Community Discussion

No community discussion yet for this question.

Full 9A0-127 Practice