Excerpt for Adobe ColdFusion Interview Questions You'll Most Likely Be Asked by Vibrant Publishers, available in its entirety at Smashwords

Adobe ColdFusion

Interview Questions


You'll Most Likely Be Asked


Job Interview Questions Series


www.vibrantpublishers.com


*****



Adobe ColdFusion Interview Questions You'll Most Likely Be Asked

Published by Vibrant Publishers at Smashwords

Copyright 2012 Vibrant Publishers, USA.

Smashwords Edition, License Notes

This ebook is licensed for your personal use only. This ebook may not be re-sold or given away to other people. If you would like to share this book with another person, please purchase an additional copy for each recipient. If you’re reading this book and did not purchase it, or it was not purchased for your use only, then please return to Smashwords.com and purchase your own copy. Thank you for respecting the hard work of this author.


This publication is designed to provide accurate and authoritative information in regard to the subject matter covered. The author has made every effort in the preparation of this book to ensure the accuracy of the information. However, information in this book is sold without warranty either expressed or implied. The Author or the Publisher will not be liable for any damages caused or alleged to be caused either directly or indirectly by this book.


Vibrant Publishers books are available at special quantity discount for sales promotions, or for use in corporate training programs. For more information please write to bulkorders@vibrantpublishers.com


Please email feedback / corrections (technical, grammatical or spelling) to spellerrors@vibrantpublishers.com


To access the complete catalogue of Vibrant Publishers, visit www.vibrantpublishers.com


*****



Table of Contents


1. General

2. CF Server / Administrator

3. Arrays, List, Structures

4. Conditional Logic

5. Date and Time Functions

6. Database, Stored Procedures, Queries and Transactions

7. Debugging, Error and Exception Handling

8. Ajax

9. CFC, Custom Tags, UDFs

HR Questions

INDEX


*****



Adobe ColdFusion Interview Questions


Review these typical interview questions and think about how you would answer them. Read the answers listed; you will find best possible answers along with strategies and suggestions.


*****



General


1: In ColdFusion 9, what happens if you name a function 'Location'?

Answer:

CF throws an error as 'Location' is now a reserved word used by CFSCRIPT.


2: Name three new tags introduced in ColdFusion 9.

Answer:

cfcontinue, cffinally, cffileupload


3: What version of ColdFusion introduced the CFWINDOW Tag?

Answer:

Version 8


4: Give examples of ColdFusion complex variables.

Answer:

structs, arrays, queries, XML and objects


5: Name the two tags in ColdFusion used to consume SOAP Web services.

Answer:

CFINVOKE, CFOBJECT


6: What ColdFusion function can be used to convert the data type of a ColdFusion variable to a specified Java type?

Answer:

JavaCast


7: What ColdFusion function is used to set a new locale?

Answer:

SetLocale() sets the country/language locale for ColdFusion processing. The SetLocale() value determines the default format of date, time, number, and currency values e.g SetLocale("English (UK)")


8: What is CFEXIT’s primary role in a ColdFusion custom tag?

Answer:

The CFEXIT tag aborts processing of the currently executing CFML custom tag.


9: What will this line of code do in a Custom tag <cfif thisTag.HasEndTag is 'False'>?

Answer:

The variable 'thisTag.HasEndTag ' is used to determine whether an end tag is specified in a custom tag. If the user specifies an end tag then the variable is set to 'True'.


10: What does the 'addToken' attribute in <cflocation url="test.html" addToken="Yes"> do?

Answer:

The addToken attribute lets you send client information to the target page.


11: What is CFCOLLECTION used for?

Answer:

It is used to create a Verity or Solr search collection.


12: ColdFusion lets you store client variables as Cookies in web browsers. List two disadvantages of storing variables this way.

Answer:

a) Users can configure browsers to disallow Cookies.

b) Only a limited amount of data can be stored in Cookie (about 4kb).

13: What attribute determines if a CFCOOKIE is a Persistent cookie or a Session cookie?

Answer:

The ‘expires’ attribute is used to specify a date when it is a Persistent cookie. The attribute is not required in a Session cookie.


14: When using CFHTTP, the content returned is stored in what variable?

Answer:

cfhttp.FileContent


15: Which is the universal language that applications use to request a web service from another server?

Answer:

Applications use SOAP (Simple Object Access Protocol) to request web services from another server.


16: What is the function PreserveSingleQuotes used for?

Answer:

By default ColdFusion will automatically escape single quotation mark characters that are contained in a variable; 'PreserveSingleQuotes' prevents this from happening.


17: The following string <cfset myString = """text text"" 'more text'"> causes a Javascript error when called in the script below:

<script>

s = "<cfoutput>#myString#</cfoutput>";

alert(s);

</script>

What ColdFusion function can be used to ensure ‘myString’ does not return a JavaScript error?

Answer:

JSStringFormat() The function escapes special JavaScript characters, such as single quotation mark, double quotation mark. e.g JSStringFormat(myString)


18: In the following code, what is the value of 'tmp'?

<cfset removeText="4-3_primary_key_101">


Purchase this book or download sample versions for your ebook reader.
(Pages 1-6 show above.)