• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

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>


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint