Test Your Knowledge

 
Jul 31, 2000
1. Name 3 ways of getting information from a database.
2. Name 4 ways of using custom Java with ColdFusion.
3. Name all the tags that do comparisons of data.

Last weeks questions

1. Inside a ColdFusion Module, what will a CFABORT tag do?
Abort the module and the calling template.

2. Inside a ColdFusion Module, what will a CFEXIT tag do?
Exit the module and return to the calling template.

3. Inside a ColdFusion Module, what will a CFBREAK tag do?
Cause an error unless the CFBREAK is within a CFLOOP inside the module.

4. Name 2 ways of setting a cookie (there are actually 3 ways).
Sets a cookie called foo with a value of bar that expires in an hour.
<cfcookie name="foo" value="bar" expires="1">
Sets a cookie called foo with a value of bar that will expire once the users browser leaves the site.
<CFSET cookie.foo="bar">
Sets a cookie called foo with a value of bar that will expire in 30 minutes.
<CFHEADER name="SET-COOKIE" value="foo=bar; expires=#GETHTTPTIMESTRING(DateAdd('n', 30, now()))#">


Privacy | FAQ | Site Map | About | Guidelines | Contact | Advertising | What is ColdFusion?
House of Fusion | ColdFusion Jobs | Blog of Fusion | AHP Hosting