ColdBox Interview Questions for Experienced/ColdBox Interview Questions and Answers for Freshers & Experienced

Explain about enableCFoutputOnly, showDebugOutput attributes of cfsetting tag?

* yes: blocks output of HTML that is outside cfoutput tags.
* no: displays HTML that is outside cfoutput tags.
* yes: if debugging is enabled in the Administrator, displays debugging information.
* no: suppresses debugging information that would otherwise display at the end of the generated page.

Posted Date:- 2021-11-29 07:43:55

What is the use of cfsetting?

This tag used to Control the requested URL's page processing, such as the output of HTML code in pages.It has 3 attributes.
* enableCFoutputOnly
* requestTimeOut
* showDebugOutput
All are optional attributes. you should mention atleast one attribute.Here I will explain a bit about requestTimeOut attribute.Rest two explained for the next question.
This attribute added in ColdFusion MX varsion.
It used to define time limit, after which ColdFusion processes the page as an unresponsive thread.
Overrides the time-out set in the ColdFusion Administrator.

Posted Date:- 2021-11-29 07:43:05

What is the difference between cfquery & cfinsert/cfupdate?

* Safer for SQL injection attack
* Can do any sql operations
* Designed to do one thing and one thing only
* Only work with FORM fields
* FORM fields be named the same as the table columns
* Cannot do any processing or manipulation of the values
* When updating the row primary key must be present as a FORM field (possibly as a hidden field).
* If you are using CFCs as a database abstraction layer then you can't use cfinsert/cfupdate

Posted Date:- 2021-11-29 07:42:25

What is the use of cfcookie expires attribute? What is the default value for the same?

It defines lifetime or scope of a cookie variable.
expires attribute is optional attribute for cfcookie tag.Default value is till the browser is closed.If you didn't mention the expires attribute for an cookie variable it will available upto browser close.

Posted Date:- 2021-11-29 07:41:28

How can you implement cfparam into cfscript?

Tag Version:
<cfparam name="variableName" default="defaultValue">
Script Version:
if(Not isDefined('variableName'))
variableName = "defaultValue"

Posted Date:- 2021-11-29 07:40:52

How can you create dynamic query?

Dynamic SQL is a SQL code that your program generates using variables before the SQL is executed.
In coldfusion, CFQUERY give full provision to write all conditional logic & looping to derive the dynamic sql statement to execute.
You can use dynamic SQL to accomplish tasks such as adding WHERE clauses to a search based on the fields that the user filled out on a search criteria page.

Posted Date:- 2021-11-29 07:39:33

What is the difference between HTMLEditFormat and HTMLCodeFormat?

Both are used to replaces special characters in a string with their HTML-escaped equivalents
Difference between HTMLCodeFormat function and HTMLEditFormat is that HTMLEditFormat does not surround the text in an HTML pre tag.

Posted Date:- 2021-11-29 07:39:05

Can we have more than Data Source within CFTransaction?

No.Datasource Names For All The Database Tags Within CFTRANSACTION Must Be The Same.
The workaround for the problem of CFTRANSACTION with different data source,
Use same datasource in CFQUERY
but inside the cfquery prefix the table with desired database in the query.
<cfquery datasource=same>
<cfquery datasource=same>
SELECT * FROM other.dbo.TableName

Posted Date:- 2021-11-29 07:38:28

How can you call the external exe files?

using cfexecute tag, we can call the external exe files.Below example executes the Windows NT version of the netstat network monitoring program, and places its output in a file.
<cfexecute name = "C:WinNTSystem32
arguments = "-e"
outputFile = "C:Tempoutput.txt"
timeout = "1">

Posted Date:- 2021-11-29 07:37:15

Where we can place the custom tag?

Custom tags can be stored in any of the following locations. ColdFusion will search for them in the order listed.
In the same directory as the calling page - while this is easy for demonstration purposes, it's not very practical, as it means that the custom tag is only available within that directory.
In a directory (or subdirectory of a directory) specified in ColdFusion Administrator under Extensions -> Custom Tag Paths.
In the cfusion/CustomTags directory or one of its subdirectories.

Posted Date:- 2021-11-29 07:36:38

How would you declare an inline css to format the table with a background color of “yellow” and give the table cell a right margin of 10 pixels?

table {
background-color: yellow;
td {
margin: 0 10px 0 0;
<td>Hello world</td>

Posted Date:- 2021-11-29 07:36:09

How would you format some text using css to be verdana and bold?

.myfontclass {
font-family: Verdana;
font-weight: bold;

Posted Date:- 2021-11-29 07:35:32

How would you write a LEFT JOIN statement to return a result set of movie.title’s and’s?

FROM movie LEFT JOIN director ON = director.movie_id

Posted Date:- 2021-11-29 07:33:41

How do you call a module named “testmod.cfm” with the parameters param1=”yes” and param2=5?

<cfmodule template=”testmod.cfm”

Posted Date:- 2021-11-29 07:31:59

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”>

Posted Date:- 2021-11-29 07:31:15

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.

Posted Date:- 2021-11-29 07:30:27

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.

Posted Date:- 2021-11-29 07:29:57

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.

Posted Date:- 2021-11-29 07:29:25

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.

Posted Date:- 2021-11-29 07:28:58

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.

Posted Date:- 2021-11-29 07:28:27

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.

Posted Date:- 2021-11-29 07:28:00

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.

Posted Date:- 2021-11-29 07:27:30

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.

Posted Date:- 2021-11-29 07:27:04

Describe about the level of security a firm can have while running adobe cold fusion?

Cold fusion 8 has enhanced security features, it provides multiple adobe cold fusion installations on the server which necessarily removes the threat of accidental deletion, intrusion, addition, etc because the remote lies with multiple administrators and they can set permissions and access. Data sources, Cold fusion components and custom tags can be differentiated on their work accordingly.

Posted Date:- 2021-11-29 07:26:42

Describe about Clustering

In previous installations of Adobe cold fusion multiple servers were required to run the application but adobe cold fusion 8 mitigated the problem by clustering Coldfusion into multiple physical installations which take over the load if any application fails during its course of time. This also allows in easy maintenance and possible reduction in maintaining multiple servers. This was made possible by J2EE server.

Posted Date:- 2021-11-29 07:26:21

What are the benefits of multiple server instances?

The benefits of multiple server instances are, a single server is enough to deploy a host of applications which makes it highly applicable this was not the case when MX7 was present. Applications running on a server need not be stopped for maintenance as the work and load is shared upon multiple servers. Security, optimized applications and clustering are some of the main benefits of Adobe cold fusion multiple server instances.

Posted Date:- 2021-11-29 07:25:52

Can we modify ColdFusion server code and what are the two open source CFML parsing engines?

Server code of ColdFusion cannot be viewed or modified. The language of ColdFusion itself is documented and subjected to rights laid down by adobe. The two open source engines which are parsing ColdFusion’s markup languages are Blue dragon and Smith project. Blue dragon is a J2EE version.

Posted Date:- 2021-11-29 07:25:25

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.

Posted Date:- 2021-11-29 07:25:06

Explain Sandbox Security?

Sandbox security is a superset of resource security. Sandbox security lets you create multiple sandboxes, each corresponding to a different directory. For each sandbox, you specify a set of resource limitations that apply to all ColdFusion pages in the sandbox directory and its subdirectories.

Posted Date:- 2021-11-29 07:24:36

How do you pass value from a custom tag to calling page?

with the scope 'caller' - <cfset caller.callingpagevariable = 10>

Posted Date:- 2021-11-29 07:24:00

How do you pass value to a custom tag variable?

with the scope 'attributes' - <cfset atrributes.customtagvariable = 10>

Posted Date:- 2021-11-29 07:23:44

explain cfsilent tag, whats the purpose of using cfsilent?

<cfsilent> is used Suppress output produced by CFML within a tag's scope.

Posted Date:- 2021-11-29 07:22:58

Explain about cfsavecontent?

Saves the generated content of the cfsavecontent tag, including the results of evaluating expressions and executing custom tags, in the specified variable.

variable = "variable name">
the content

Posted Date:- 2021-11-29 07:22:37

Explain the difference between isdefined and structkeyexists?

StructKeyExists - Determines whether a specific key is present in a structure.
IsDefined - Evaluates a string value to determine whether the variable named in it exists.

Posted Date:- 2021-11-29 07:22:17

how do you create a webservice in coldfusion?

<cfcomponent rest="true" restpath="restService">
<cffunction name="sayHello" access="remote" returntype="String" httpmethod="GET">
<cfset rest = "Hello World">
<cfreturn rest>

Posted Date:- 2021-11-29 07:22:00

how do you read a webservice in coldfusion?

<cfinvoke webservice=""
<cfinvokeargument name="zipcode" value="55987"/>
<cfoutput>The temperature at ZIP code 55987 is #aTemp#</cfoutput>

Posted Date:- 2021-11-29 07:20:58

<cfif isdefined("test")> or <cfif isdefined("variables.test")>, which is feasible to use?

<cfif isdefined("variables.test")>

Posted Date:- 2021-11-29 07:20:35

Explain CFLDAP , Cflogin and purpose of the tag


Provides an interface to a Lightweight Directory Access Protocol(LDAP) directory server, such as the Netscape Directory Server.
<cfldap action=" query: returns LDAP entry information only. Requires name, start, and attributes attributes.add: adds LDAP entries to LDAP server. Requires attributes attribute.modify: modifies LDAP entries, except distinguished name dn attribute, on LDAP server. Requires dn. modifyDN: modifies distinguished name attribute for LDAP entries on LDAP server. Requires dn.delete: deletes LDAP entries on an LDAP server. Requires dn." server = "server name" etc>.


A container for user login and authentication code. ColdFusion runs the code in this tag if a user is not already logged in. You put code in the tag that authenticates the user and identifies the user with a set of roles.<cflogin applicationToken = "token" cookieDomain = "domain" idletimeout = "value" allowconcurrent = true|false"usebasicauth = "true|false"> <cfloginuser name = "name" password = "password" roles = "roles"> </cflogin>

Posted Date:- 2021-11-29 07:20:16

What is the purpose of the GetAuthUser() function?

Gets the name of an authenticated user.

The name of an authenticated user.

This function works with cflogin authentication or web server authentication. It checks for a logged-in user as follows:

It checks for a login made with cfloginuser.
If no user was logged in with cfloginuser, it checks for a web server login (cgi.remote_user).

Posted Date:- 2021-11-29 07:19:22

Explain what is debugging and how do you debug the code?

<cfdump>,<cfabort>,<cftrace> and enable debugging settings in coldfusion administrator.

Posted Date:- 2021-11-29 07:19:04

What is the default timeout for application and session variables and how do you increase or decrease default timeouts?

Default Application timeout is 2 days and Default session timeout is 20 minutes. we can modify this from application.cfc in <cfapplication> tag or in coldfusion administrator.

Posted Date:- 2021-11-29 07:18:49

R4R Team
R4R provides ColdBox Freshers questions and answers (ColdBox Interview Questions and Answers) .The questions on website is done by expert team! Mock Tests and Practice Papers for prepare yourself.. Mock Tests, Practice Papers,ColdBox Interview Questions for Experienced,ColdBox Freshers & Experienced Interview Questions and Answers,ColdBox Objetive choice questions and answers,ColdBox Multiple choice questions and answers,ColdBox objective, ColdBox questions , ColdBox answers,ColdBox MCQs questions and answers R4r provides Python,General knowledge(GK),Computer,PHP,SQL,Java,JSP,Android,CSS,Hibernate,Servlets,Spring etc Interview tips for Freshers and Experienced for ColdBox fresher interview questions ,ColdBox Experienced interview questions,ColdBox fresher interview questions and answers ,ColdBox Experienced interview questions and answers,tricky ColdBox queries for interview pdf,complex ColdBox for practice with answers,ColdBox for practice with answers You can search job and get offer latters by studing .learn in easy ways .