ColdFusion Interview Questions and Answers

25+ TOP ColdFusion Interview Questions and Answers

ColdFusion Interview Questions
ColdFusion Interview Questions

1. Can you list the difference between ColdFusion component and Custom Tags?
CFC (ColdFusion Component) has multiple entry points whereas Custom Tags have only a single entry point
CFC can be persistent but Custom Tags cannot be persistent
In the name of web services, CFCs can be accessed everywhere. In the case of Custom Tags, it can be accessed only by ColdFusion and locally.
Validation mechanism besides formalized parameter passing will be supported by CFC buy not by Custom Tags.

2. Mention the two types of process carried out while setting the ColdFusion Client Management?
By using Application.CFC, initialize the code
The required tag attributes should be specified

3. Describe the application of CFX tag.
The original ColdFusion extensibility interface is used to execute CFX tags, write extensions with the implementation of CFX interface and write C, C++ and Java tags.

4. Write the syntax to create Tab strip
AJAX UI elements (Supported by ColdFusion) can be used to create Tab strip with the deployment of <cflayout> and <cflayoutarea>

<cflayout type =” “>
<cflayoutarea title= “ “>….

5. Write short notes on Flash Form?
Flash form resembles HTML form incorporated by flash format. Web browsers that have flash player enabled support the execution of Flash form.
With the use of tag, the Flash binary of swf format form is generated automatically by ColdFusion.
In addition to enhancing user experiences, Flash forms also have several features such as automatic positioning of elements, accordion-style and multiple-tab form panes. Apart from these features, cfcalender, cfgrid and cftree are other elements available to be displayed as Flash Objects.

6. Explain about ColdFusion Transaction
Transactions are made simple and compact by CFTransaction. When there are more than one transactions assigned, CFTransactions connects with DBMS to transform such multiple transactions into a single transaction.

<cftransaction action=”…………..

7. Mention few advantages of ColdFusion?
ColdFusion is cross platform independent (Supports any OS ) and it acts as a linking bridge to every kind of databases.
Besides supporting all types of protocols, it also works for the integration of various other Adobe Products such as Flash, Flex and PDF.
ColdFusion doesn’t have a complicated migration and installation procedures rather it is very simple and easy to understand.
ColdFusion is practically light to learn and its prospect is noteworthy, especially when it comes to faster development.

8. What happens when Application.cfm file in an application is not available?
ColdFusion searches for the directory tree in case, if the Application.cfm file page is unavailable. In fact, multiple Application.cfm file is also possible in an application.

9) How one can provide secured internet applications using adobe ColdFusion?
The three major internet security threats are
1) Memory leak during transmit of information
2) Impersonation which is like an exact clone which enters as legitimate
3) Unauthorized access
These mechanisms are handled by adobe by using Data encryption, User Authentication and Access control.

10) Explain about ColdFusion administrator?
ColdFusion administrator is a web based application just like the Cpanel this has many sub options through which you can control many functions such as data sources, global server settings, debugging settings, and application security settings. If you are having multiple administrator services then password must be provided for all those services. Also multiple user instances are provided where by a server can be split into cluster of Coldfusion administrators where a specific work can be provided to a specific individual who cannot alter changes.

11) Is there any facility which prevents viewing of source code?
ColdFusion has a utility called cfencode which blocks viewing of the source code on coldfusion pages which has an application. Although guarantee of this product is not guaranteed, to an extent this can block viewing of source code altogether. As ColdFusion runs on a web server source code can be blocked completely.

12) Describe about string encryption?
CFML language provides a 32 bit encryption which is symmetric key based. This function is called as Encrypt. Cold fusion at present uses 32 bit encryption but if your application requires 1024 bit encryption you can happily use that function because cold fusion integrates with third party libraries. Cold fusion also uses Hash function which is very important in safeguarding passwords. They use MD5 and XOR based algorithm.

13) What is cold fusion component roles implementation?
Cold fusion component roles implementation allows users to log into their role based administrator support function and not any other function. If a user tries to enter into other functions an error is thrown. These roles and components are taken by the Cold fusion. These roles and functions are transmitted through action script which allows the users to work on their components.

14) What is CFCHART engine?
This CFCHART provides more than 200 different attributes which can be altered and these attributes can be used to control animation, labels, and colors. This CFCHART engine is used to produce high quality graphs, charts, sketches, and these charts can also aid you in Business analysis. These charts aid you very much in developing a good business presentation as you can control every part of it.

15) Which tag aids us in Debugging and attribute in inter site scripting attack?
The tag which aids you in debugging is cftimer tag; this tag gives you the exact time which happens between executions of each line of code. cfapplication helps you prevent intersite scripting attack.

16) Explain about enterprise manager?
Enterprise manager helps you in admin functions. This will help you to create multiple cf server instances, through which you can experience advanced security, performance, and savings.

17) What is the benefit of extensible gateway architecture?
Developers can benefit from extensible gateways by limitless variety of emerging protocols. Developers can benefit by the creation of event gateways.

18) What are the different types of resources through which cold fusion can communicate?
(i) Mobile phones that support SMS
(ii) XMPP or Lotus IM clients
(iii) Java sockets
(iv) Java messaging service
(v) Content management systems and file systems

19) What are the two primary types of files in a cold fusion application?
There are two primary types of file systems in ColdFusion which are used extensively they are Coldfusion templates and coldfusion pages. Developers in addition to these use CFML. These can contain HTML and often CFML for Dynamic content.

20) State and explain about integrating Coldfusion applications with JSP.
A cold fusion page can contain JSP or a servlet and a JSP page can contain Coldfusion applications. This facilitates easy access to build hybrid functions and applications which can combine coldfusion components and servlets. How would you loop through a SQL result set stored in the CF variable named my “results” and output the result set columns named “cola” and “colb” in an html table?
<cfoutput query=”results”>

21. Explain coldfusion architecture?
ColdFusion is a rapid application development environment that lets you build dynamic websites and Internet applications quickly and easily.

ColdFusion consists of the following core elements:
· CFScript Engine
· ColdFusion Administrator
· Verity Search Engine
· Extensions

1. CFScript Engine:
Coldfusion includes a built-in scripting language, CFScript, that let us write code in a
JavaScript fashion.

2. ColdFusion Markup Language:
ColdFusion Markup Language (CFML) is a tag-based language, similar to HTML, that uses special tags and

3. Coldfusion Administrator:
ColdFusion Administrator configures and manages the ColdFusion application server. It is a secure web-based application like control panel that you can access using any web browser, from any computer with an Internet connection.

4. Verity search Engine:
The Verity Search Server (also called the Verity search engine) provides full text search capability for documents and data on a ColdFusion site.

5. Extension:
We can extend CFML further by creating custom tags or user-defined functions (UDFs), or by integrating COM,C++, and Java objects by using CFX tag.

22. How coldfusion process the request?
1. A web browser makes a request to a web server for a template with a .cfm extension.
2. The web server receives the request and forwards it to the ColdFusion Application Server.
3. The ColdFusion Application Server parses the CFML template and processes the tags and functions accordingly, interacting with other services, such as data sources or mail servers, directory, file servers, report servers etc.
4. The ColdFusion Application Server combines its dynamic output with the static HTML (and JavaScript or VB Script, if any) in the template and passes the whole page back to the web server.
5. The web server passes the dynamically generated content back to the client machine’s web browser.

23. What are the benefits of using ColdFusion Components?
Security: You can restrict access to a ColdFusion component and it’s function
Performance: ColdFusion Components are faster. This is because they are compiled. Note that a ColdFusion component only has to be compilied the first time it is called. It will then be pre-compiled for all subesquent calls unless you update the component, in which case it will compile once again.
Extensibility: ColdFusion components can share methods with other ColdFusion components. You can also make them available to applications built in other languages by using SOAP or URL calls.
Reusability: You can code your component so that it is a “black box” in that you can move it around without anything breaking – it’s a standalone piece of code that accepts input and provides output. Also, generally, once you’ve called a component in a page, you can reuse it without having to call it again in that page.
Documentation: ColdFusion Components are self documenting – they generate their own comments. This is based on the developer using the “Hint” attribute.

24. What are different types of errors in coldfusion?
There are three types of ColdFusion Errors:
Exception: Where the error stops the request from completing its process.
For example-
variable is not defined and used somewhere inside code
Missing Template: When an HTTP request for a page cannot be found.
For example-
xyz.cfm used below doesnot exists.
<cfinclude template=”xyz.cfm”>
Form Field Data Validation: When server side form validation fails.
For example-
credit card no validation as below.
<cfinput validate=”creditcard” name=”credit_card” id=”credit_card” value=””>

25. What are different ways to handle errors in coldfusion?

When an error is thrown, it will bubble up the application until the first Error Handler catches it. The order in which the handlers will be called is:
CFERROR in Application.cfm OR onError() in Application.cfc
Site-Wide error handling
Coldfusion error handler

Frequently Asked ColdFusion Interview Questions