Summary


ColdFusion code can execute very efficiently or run very poorly, depending on how you write the code. You can use a number of techniques to write code that will perform optimally. For example, you can identify effective ColdFusion coding techniques, avoid having ColdFusion do the database's job, enforce strict attribute validation, and use <cfcache> when logical. To be sure that a particular technique has actually increased performance, you can use a number of ColdFusion tools, such as the <cftimer> tag and GetTickCount() function, to show processing time.

Sample Questions

1:

When many expression values will be tested, what tag is best to use?

  1. <cfif>/<cfelseif>

  2. <cftestcase>

  3. <cfswitch>/<cfcase>

  4. <cfloop>

2:

Which of the following tags reuses code most efficiently?

  1. <cfinclude>

  2. <cf_CustomTag>

  3. <cfparam>

  4. <cfmodule>

3:

Which of the following tags cannot be used after a <cfflush>?

  1. <cfdump>

  2. <cfinvoke>

  3. <cfsetting>

  4. <cfform>



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