Summary


Using dynamic functions (IIf(), DE(), and Evaluate()) makes it possible to write powerful and highly reusable code in small, easy-to-manage code blocks.

Sample Questions

1:

Choose all the statements that are true.

  1. The DE() function is always used to display output.

  2. The DE() function stops ColdFusion from processing expressions.

  3. DE() and IIf() can be used together.

  4. The letters in DE() stand for do evaluation.

2:

What will be the output of the following code?

 <cfoutput>#IIf(1 is 1,"Evaluate(1,2,3)","'Hello'")#</cfoutput> 

  1. 1

  2. 2

  3. 3

  4. Hello

3:

What does the following code do?

 <cfset x="Array"> <cfset Evaluate("p = " & x & "New(1)")> 

  1. Creates an array named x.

  2. Creates an array named p.

  3. The code does not work.

  4. None of the above.

4:

In the code below, what does z equal?

 <cfset x="y"> <cfset y="x"> <cfset z = IIf(x is y,DE(x),x)> 

  1. x

  2. y

  3. null

  4. None of the above



Macromedia ColdFusion MX 7 Certified Developer Study Guide
Macromedia ColdFusion MX 7 Certified Developer Study Guide
ISBN: 0321330110
EAN: 2147483647
Year: 2004
Pages: 389
Authors: Ben Forta

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net