nerdexam
Adobe

9A0-127 · Question #77

Given the follow code snippet: <cfset startTime = CreateDateTime(2009,1,1,0,0,0)> <cfset endTime = CreateDateTime(2009,1,3,12,0,0)> <cfset i = 2> <cfloop from="#startTime#" to="#endTime#" index="i"…

The correct answer is B. 3. See the full explanation below for the reasoning.

Question

Given the follow code snippet:

<cfset startTime = CreateDateTime(2009,1,1,0,0,0)> <cfset endTime = CreateDateTime(2009,1,3,12,0,0)> <cfset i = 2> <cfloop from="#startTime#" to="#endTime#" index="i" step="#CreateTimeSpan(1,0,0,0)#"> Hello World! <br /> </cfloop> How many times does the loop iterate?

Options

  • A2
  • B3
  • C4
  • D12

How the community answered

(15 responses)
  • B
    80% (12)
  • C
    7% (1)
  • D
    13% (2)

Community Discussion

No community discussion yet for this question.

Full 9A0-127 Practice