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

Day 9

Quiz

1: Name three ways variables can be defined in ColdFusion applications.
A1: By the results of a query, by user input from a form, or by the <CFSET> tag. Other methods include server, session, and application variables, which are defined either within CF Administrator, or by your Web server .
2: Do <CFIF> statements have to be enclosed in <CFOUTPUT> tags?
A2: No.
3: Describe, in plain language, the flow of a <CFIF>-<CFELSE> statement .
A3: You should have answered something like the following: "If this is true, do this; if not, do that."
4: What is the distinguishing feature of the form input type password?
A4: When a user types text into a password form field, only asterisks are displayed .
5: Why are ColdFusion variables called "typeless"?
A5: Because their types don't have to be defined. Numbers will automatically be interpreted as numbers, text as text, and so on.
6: What is a variable scope?
A6: Variable scopes are names appended to the names of variables to show the variable's source, such as from a query or from a form.
7: True or False: Hash marks are always used when defining a variable with <CFSET>.
A7: False. You don't use the hash marks when defining the variable, but you do use them when you want the variable's value to be displayed later in the template.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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