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

Summary

ColdFusion Components are object-type building blocks used to create reusable, scalable, tiered, and structured code. CFCs are created using a set of special tags and are saved in .cfc files. CFCs may be invoked in several ways: invoking them as objects allows them to be loaded into persistent scopes. CFCs support inheritance and constructors, and they have an internal scope that persists as long as the CFC persists. CFCs can be secured on a per-method basis, and they can self-document and be introspected.

Sample Questions

1:What are valid reasons to use CFCs? (select three)
  1. Reuse

  2. Access to underlying Java

  3. Tiered development

  4. Accessible outside of ColdFusion

  5. Error handling

2:What is wrong with the following code?
<cfobject component="emps" name="empObj">
<cfinvoke component="empObj" method="Get">

  1. Missing path in <cfobject>

  2. component in <cfinvoke> is not a valid object

  3. <cfobject> is missing a method attribute

  4. Missing returnvariable attribute

3:Which of the following <cffunction> arguments is required?
  1. access

  2. name

  3. output

  4. returntype

4:Which <cffunction> argument is used to enable methods to be accessed outside of local ColdFusion?
  1. access

  2. name

  3. output

  4. roles

5:Using <cfobject> or CreateObject(), which scopes can components be instantiated in? (select four)
  1. CLIENT

  2. COOKIE

  3. REQUEST

  4. SERVER

  5. SESSION

  6. URL

  7. VARIABLES


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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