1:
| When do ColdFusion functions require hash-mark delimiters? |
A1:
| Just like variables, functions require hash marks when they appear between <CFOUTPUT> and </CFOUTPUT> tags. If they appear as part of a tag, such as <CFIF
SomeFunction(SomeVariable)>, the marks aren't required . |
2:
| Are function names case-sensitive? |
A2:
| Function names are not case-sensitive, although it's a good idea to use ColdFusion's suggested case (such as DollarFormat()) to make them easy to identify in your template pages . |
3:
| Name two functions that might be used to trim leading or trailing spaces from a text string. |
A3:
| LTrim() strips leading spaces; RTrim() works on trailing spaces. |
4:
| Briefly describe a date/time object. |
A4:
| A date/time object is a special unit that may hold a month, date, and year, as well as an hour, minute, and second. It is created, manipulated, and displayed using date and time functions. |
5:
| In the jargon of functions, what is a token? |
A5:
| A token is the part of a string that appears between two delimiters. For example, if I specify that I want to use spaces as delimiters in this sentence, each word would be considered a token because it appears between spaces. |
6:
| What is a mask? |
A6:
| A mask is a bit of text that specifies how a function displays a variable. For example, using a mask such as MM/DD/YY with DateFormat() causes the date January 1, 2000 to display as 01/01/00. |