ColdFusion Interview Questions
What is ColdFusion?

ColdFusion is a programming language based on standard HTML (Hyper Text Markup Language) that is used to write dynamic webpages. With ColdFusion, we can build a content database using input templates and combine these with application programs to create a Web site in which pages are developed dynamically as they are served. This has an application server and software development framework which greatly aid in developing computer software.

 

Is it possible to write cold fusion in cold fusion?

No it is not possible to write ColdFusion in ColdFusion. Actually ColdFusion was written in Java and to write programs we need to implement other kinds of programs such as Java, .NET etc. These programs are required because ColdFusion alone cannot survive.

 

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.

 

What is Application.cfm?

When ColdFusion receives a request for an application page, it searches the page's directory for a file named Application.cfm. If one exists, the Application.cfm code is logically included at the beginning of that application page.

If your application runs on a UNIX platform, which is case-sensitive, you must spell Application.cfm with an initial capital letter.

 

Can we have multiple Application.cfm file in an Application?

Yes. If the application page directory does not have an Application.cfm page, ColdFusion searches up the directory tree until it finds an Application.cfm page. If several directories in the directory tree have an Application.cfm page, ColdFusion uses the first page it finds. If the Application.cfm page is present in the directory tree (and has the required permissions set), you cannot prevent ColdFusion from including it.

ColdFusion processes only one Application.cfm page for each request. If a ColdFusion page has a cfinclude tag pointing to an additional ColdFusion page, ColdFusion does not search for an Application.cfm page when it includes the additional page.

 

What is the working process for Application.cfm?

If the application page directory does not have an Application.cfm page, ColdFusion searches up the directory tree until it finds an Application.cfm page. If several directories in the directory tree have an Application.cfm page, ColdFusion uses the first page it finds. If the Application.cfm page is present in the directory tree (and has the required permissions set), you cannot prevent ColdFusion from including it.

ColdFusion processes only one Application.cfm page for each request. If a ColdFusion page has a cfinclude tag pointing to an additional ColdFusion page, ColdFusion does not search for an Application.cfm page when it includes the additional page.

 

What is cfapplication tag?

It defines the scope of a ColdFusion application; enables and disables storage of Client variables; specifies the Client variable storage mechanism; enables Session variables; and sets Application variable time-outs.

 

How can you set the Client Management?

We can enable & disable client management as well as we can configure How & Where client variables need to be store

  • In the Application.cfc initialization code
    This.clientmanagement="True" / "false"
    This.clientStorage="[Ur_datasource_name]" / "registry" / "cookie"
  • In appliation.cfm using <cfappliaction> tag attributes
    clientManagement="yes" / "no"
    clientStorage="[Ur_datasource_name]" / "registry" / "cookie"
    [Ur_datasource_name] - Stored in ODBC or native data source. You must create storage repository in the Administrator.
    registry - Stored in the system registry.
    cookie - Stored on client computer in a cookie. Scalable. If client disables cookies in the browser, client variables do not work.

 

What are Session Timeout and Application Timeout? Where we have to do this process?

ApplicationTimeout: The time span an application will exist before it times out (if the application is not accessed in any way). This defaults to the value set in the ColdFusion administrator.

SessionTimeout: The time span a session will exist before it times out (if the application is not access in any way by that session's user). This defaults to the value set in the ColdFusion administrator.

 

What are the advantages and disadvantages of using stored procedures versus calling SQL inline in Cold Fusion?

Stored procedures abstract database logic from server side code. They also offer performance benefits in pushing application logic to the database side.

The disadvantage is that if they are poorly written then they can hinder database performance and make development a little more obfuscated.

 

What is Application Server?

A server that exposes business logic to client applications through various protocols including HTTP, HTTPS, IIOS/SSL. Eg: Sun Java Application server, weblogic server.

It takes care of important issues like Transaction Management, Security, Database Connection Pooling, Clustering, Scalability,session management,load balancing,thread management and Messaging etc. A web server cannot provide these.

 

What can be used to create connections between your ColdFusion Web sites and databases?

A DSN is used. These are set up in CF administrator and used in query code to connect to a database.

 

What are the databases that are supported by ColdFusion applications?

All relational and non relational databse like Oracle,MSAccess,mysql

 

What are the advantages of Cold fusion?
  • Simplified Installation and Migration
  • All Operating System (OS) Support
  • All Database support
  • Faster Development & Easy to Learn
  • Improved & support for all Protocols
  • Access to all the J2EE libraries
  • Integration with Other adobe Products (Flex, Flash, PDF..)

 

Compare Cold fusion with other programming languages?

For every language has its pros and cons. Q5 is answer for this also, But I will point out one or 2 advantages of CF over other languages.

vs PHP: Ajax features, Integration with adobe products, community support, J2EE

vs Java: Easy to learn, Code developmet & maintence cost

vs .NET: All OS, Most of webserver Support

 

 

Small fish in the sea

A ColdFusion programer since 2006 which have developed various web based applications using Adobe ColdFusion (from version 4.5 to 9).

manoj_kothari9@yahoo.com
+91 7506360230

Join me on:

more about me

Video times

Here are some videos related to ColdFusion, Database tutorials. Hopefully it will be helpful for you.

view videos

Tip for the day

StructClear - What is the actual process?

This function does not delete the names of the variables, only their values, and it does not delete the contents of the Server.os and Server.ColdFusion structures.

view detail

Guest book
Adobe ColdFusion 9