Macromedia ColdFusion MX 7 Certified Developer Study Guide

A1:

B. Remember that structures are pointers. Both of the structures (A and B) are the same structure, and each equals 2 after being set a second time.

A2:

B. The attributes that are used with a <cfloop> and a structure are item and collection. # must be used around the structure within the collection attribute.

A3:

A. StructNew() takes no parameters. The other three options are all valid.

A4:

B and C. A is invalid, because spaces are not allowed in key names when using dot notation. B is valid, as long as lastname is a variable containing a valid key name. C is standard dot notation. D is invalid, because quotes are not allowed in key names.

Категории