Best Adobe Coldfusion Interview Questions Part – 3
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 casesensitive, you must spell Application.cfm with an initial capital letter.
Difference Between Cold Fusion Mx 6 And Cold Fusion Mx 7?
Windows authentication introduced thorough “cfntauthenticate” tag cfcompile utility introduced which used for Sourceless deployment
Administrator API:
Change ColdFusion settings programmatically, without logging into the CF Administrator.
Gateways:
SMS, IM (based on Extensible Messaging and Presence Protocol) gateways introduced
Flash forms , Skinnable XML forms introduced New report builder introduced
How Can You Communicate With Web Server (apache Or Iis) From Coldfusion?
Cold Fusion is an example of a Common Gateway Interface application. The Common Gateway Interface is a mechanism to allow Web servers, which are designed to serve static documents, to receive dynamic output from programs and serve it as if it were static data.
When a browser sends a request for a Cold Fusion template to a Web server, several things must happen. First, the Web server recognizes the information from the browser as a request for CGI output.
If the request was initiated from a form, the server has to write the form field information to some area in storage that is accessible to other programs on the machine. Usually, this is done by using STDOUT data streams. The WinCGI interface, which can be used by WebSite and other servers, writes the form data to INIstyle files on disk, which are then opened and read by the CGI application.
The CGI program requests data from the data source, which is returned in step
The CGI program formats the data as HTML output, returning this output to the server in step
The server receives this output, performs any further serverside processing necessary, and then sends it to the browser.
Cold Fusion defaults to using server API modules instead of CGI to communicate between the Web Server and ColdFusion Application Server.
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
Difference Between Cold Fusion 5 And Cold Fusion Mx 6?
All versions of ColdFusion prior to 6.0 were written using Microsoft Visual C++. CF MX 6.0 move to the Java based architecture. Major things introduced in CFMX (MX Matrix, Code name is NEO hero of Matrix).
I pointed out some of them below:
Mac,Linux OS support
Flash Remoting ability to code and debug Flash
API was released with an OOP
Added Verity Searches
What Is Url Token?
Combination of CFID and CFTOKEN is called as url token. If user disable the browser cookie, It is used to track a user’s browser session.
What Is Cfobject?
CFC can be instantiated as an object, using the tag.
What Is Createobject?
CreateObject() is a functional equivalent of the tag.
CreateObject() can be used to instantiate CFCs just like can, but there is one notable difference:
As a function, CreateObject() can be used in a block (whereas cannot).
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.
What Is Cfscheduler?
It provides a programmatic interface to the ColdFusion scheduling engine. It can run a CFML page at scheduled intervals, with the option to write the page output to a static HTML page. This feature enables you to schedule pages that publish data, such as reports, without waiting while a database transaction is performed to populate the page.
What Is Wddx? Where All Are Applicable?
For XML to work, both sender and recipient must agree on an XML language, and all data must be well formed according to that language. WDDX is Macromedia’s contribution to the XML community. It is an opensource XML DTD (Document Type Definition) that defines generic data types such as strings, arrays, structures, and recordsets.
WDDX is an XML language that defines data not any specific implementation, but raw data itself. This can make data sharing via XML quick and painless (it doesn’t require that an XML language be agreed upon).
What Is Query In Query?
ColdFusion allows developers to reuse existing queries by running queries against them in memory. This gives you the advantage of being able to avoid the often costly performance hit of going back to the database to manipulate data that the application server has already recently called.
A standard statement can be used to call a query variable in memory as though it were simply a table of data in an available data source. Query variables can even be joined, which provides interesting possibilities for joining data from disparate information sources.
How Can You Connect With Database From Coldfusion?
Database manipulation tags (cfquery, cfstoredproc, cfinsert, cfupdate) have an attribute called datasource which used to identify/connect to a database. Data sources can be defined in CF administrator section.
What Is Flash Form?
Flash form is a form like ordinary HTML form, with flash format which run on flash player enabled browsers. Using cfform tag CF automatically generates the swf format form’s Flash binary from your CFML code. Flash Forms can be used to create a better forms experience for your users.
These features include accordionstyle and multipletab form panes and automatic element positioning. You can also display cftree, cfgrid, and cfcalendar form elements as Flash
What Is The Difference Between Client And Session Variables?
Session variables can be used to dump complex data structures like arrays and structures.But client variable are used only in case of simple variables.
What Is Structure? What Are The Different Functions In Structure?
ColdFusion structures consist of keyvalue pairs. Structures let you build a collection of related variables that are grouped under a single name.
A structure’s key must be a string. The values associated with the key can be any valid ColdFusion value or object. It can be a string or integer, or a complex object such as an array or another structure. Because structures can contain any kind of data they provide a very powerful and flexible mechanism for representing complex data. check Structure functions here.
What Is The Difference Between Structure And Array?
In structure one can combine variables of different datatype in to a common data type Whereas arrays are sequentially stored values of the same datatype.
What Is Cookie Variables?
Cookies are server specific simply stored variables stored in files in the browser’s file system. It used to track state