Summary


ColdFusion variables and expressions are the building blocks of most ColdFusion development. ColdFusion variables are typeless upon creation, and the type is then cast when used with an operator. Variable prefixes determine the scope of the variable, and using them is almost always a good idea. <CFSET> and <CFPARAM> are essential tools in creating variables. Using the request scope is a very helpful way to extend the places where local variables can be used. Functions can be used to return manipulated variable values. Both constant and regular expression string manipulation are possible in ColdFusion.

Sample Questions

1:

Expressions are a combination of operands, operators, and functions. Which of the following are operands? (select two)

  1. ColdFusion variables

  2. MOD

  3. 34

  4. LCase()

2:

When no prefix is used, which scope would be used if values existed in all of the following for a variable of the same name?

  1. FORM

  2. URL

  3. CLIENT

  4. COOKIE

3:

Which of the following is the best syntax for an assignment statement?

  1. <cfset #PassingDate#=#DateFormat(Now())#>

  2. <cfset PassingDate=#DateFormat(Now())#>

  3. <cfset #PassingDate#=DateFormat(Now())>

  4. <cfset PassingDate=DateFormat(Now())>

4:

Which tag provides the greatest flexibility in verifying the presence of a variable and determining that its contents are valid?

  1. <cfif>

  2. <cfdump>

  3. <cfparam>

  4. <cfoutput>

5:

What would the following code snippet display?

 <cfset name="Ben"> <cfdump var="name"> 

  1. The name Ben

  2. The word VAR

  3. The word name



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