A code has to be generated by using 'PageCode' and 'ProductCode,' whose numeric values are derived from a database: <cfset ArPage=ArrayNew(1)> <cfset ProductCode = #PCode#> <cfset ClassCode = #CCo...
<cfset ArPage[#ProductCode##ClassCode#] = "Superherb"> 0%
<cfset ArPage[#ProductCode# #ClassCode#] = "Superherb"> 0%
<cfset #ArPage[ProductCode & ClassCode]# = "Superherb"> 0%
<cfset ArPage[#ProductCode# & #ClassCode#] = "Superherb"> 0%
A coldfusion list is defined as follows: <cfset list1="24,25,26,27,"> <cfset list2="24,,25,26,27"> <cfset list3="24,,,,25,26,27,"> <cfset list4="24,25,,26,,27,,"> What will you get on printing "l...
4, 5, 7, 7 0%
4, 4, 7, 7 0%
4, 4, 4, 4 0%
4, 5, 6, 6 0%
A company has the following departments: Marketing, Designing, Production, Packing What will the following query return? <cfquery name="GetDeptData" datasource="myDSN"> select * from departments...
The query will return "Designing, Marketing" 0%
The query will return "Designing, Production, Packing" 0%
The query will return "Packing" 0%
Strings cannot be compared using < operator 0%
The query will return "Designing" 0%
An admin(role-type) function(ChkBalance) has to be created for printing the account balance of all the users. Which of the following ways helps one do this?
<cffunction name="ChkBalance" returnType="numeric" roles="admin" access="remote" output="yes"> 0%
<function name="ChkBalance" return="numeric" roles="admin" access="local" output="no"> 0%
<cffunction name="ChkBalance" return="String" role="admin" accessMode="remote" return=yes"> 0%
<cffunction id="ChkBalance" returnType="numeric" role="admin" accessMode="local" return="no"> 0%
Consider the following <cfquery> tag: <cfquery name="GetTableData" datasource="myDSN"> SELECT * FROM myTable </cfquery> Which condition should the WHERE clause contain so that only those rows ar...
WHERE column1 is null 0%
WHERE column1 = null 0%
WHERE column1 EQUALS null 0%
WHERE column1 NOT null 0%
WHERE column1 CONTAINS null 0%
Evaluate the following SQL statement: <cfquery name="GetEmpData" datasource="myDSN"> SELECT e.employee_id, (.15* e.salary) + (.5 * e.commission_pct) + (s.sales_amount * (.35 * e.bonus)) AS CALC_VA...
The value displayed in the CALC_VALUE column will be lower 0%
The value displayed in the CALC_VALUE column will be higher 0%
There will be no difference in the value displayed in the CALC_VALUE column 0%
An error will be reported 0%
Examine the code given below: <cfquery name="GetEmpData" datasource="myDSN"> SELECT employee_id FROM employees WHERE commission_pct=.5 OR salary > 23000 </cfquery> Which of the following statemen...
It returns employees whose salary is 50% more than $23,000 0%
It returns employees who have 50% commission rate or salary greater than $23,000 0%
It returns employees whose salary is 50% less than $23,000 0%
None of the above 0%
Examine the data in the EMPLOYEES table given below: LAST_NAME DEPTARTMENT_ID SALARY ALLEN 10 3000 MILLER 20 1500 King 20...
<cfquery name="GetEmpInfo" datasource="myDSN"> SELECT * FROM employees where salary > (SELECT MIN(salary) FROM employees GROUP BY department_id) </cfquery> 0%
<cfquery name="GetEmpInfo" datasource="myDSN"> SELECT * FROM employees WHERE salary = (SELECT AVG(salary) FROM employees GROUP BY department_id) </cfquery> 0%
<cfquery name="GetEmpInfo" datasource="myDSN"> SELECT distinct department_id FROM employees Where salary IN (SELECT AVG(salary) FROM employees GROUP BY department_id) </cfquery> 0%
<cfquery name="GetEmpInfo" datasource="myDSN"> SELECT department_id FROM employees WHERE salary > ALL (SELECT AVG(salary) FROM employees GROUP BY AVG(SALARY)) </cfquery> 0%
How do you decrypt text that has been encrypted using the hash function?
By using the unhash function 0%
By hashing the encrypted text again 0%
It cannot be done 0%
By using the decrypt function 0%
How will you test whether a cookie has already been set on the clients browser?
<CFIF IsDefined(COOKIE("VistorId"))> 0%
<CFIF IsDefined("CFCOOKIE.VistorId")> 0%
<CFIF IsDefined("COOKIE.VistorId")> 0%
None of the above 0%
If the following code is inserted into your website, when will the cookies expire? <CFCOOKIE NAME="CFID" VALUE="#Session.CFID#"> <CFCOOKIE NAME="CFTOKEN" VALUE="#Session.CFTOKEN#">
when the session ends 0%
When the application ends 0%
This code has no effect on the expiration of the cookies 0%
Query of Queries cannot be performed on cfassociate.
The <cfhttp> tag can have multiple <cfhttpparam> tags, subject to certain limitations. Which are these limitations?
The formField type attribute is only meaningful with the cfhttp tag POST and GET methods 0%
The file and formField type attributes cannot be used with the cfhttp tag TRACE method 0%
The file type attribute is only meaningful with the cfhttp tag POST and PUT methods 0%
Both a and c 0%
Both b and c 0%
All the above 0%
The emp_data table has following values for its department field: marketing, production, production, sales, NULL, NULL, Marketing, Null What will the following query return: <cfquery name="GetDe...
marketing, production, sales 0%
marketing, production, sales, NULL 0%
marketing, production, sales, NULL, NULL 0%
marketing, production, sales, NULL, Marketing 0%
marketing, production, sales, NULL, NULL, Marketing 0%
Impossible to say, because it depends upon the underlying database 0%
The following structure stores the address of one of the employees: <cfset AddrStr= StructNew()> <cfset AddrStr.Address1="23/16"> <cfset AddrStr.Address2="Lismore Street"> <cfset AddrStr.City="Man...
#EmpStr.key.City# 0%
#EmpStr["key"].City# 0%
#EmpStr.key["City"]# 0%
#EmpStr["key"]["City"]# 0%
Any of the above 0%
Both a and c 0%
EmpStr.key.City 0%
There are 5 info nodes in an XML document. How will you obtain the value of the 3rd info node?
<cfset XResult = xmlSearch(XMLObject, "/info[2]")> 0%
<cfset XResult = xmlSearch(XMLObject, "/info[3]")> 0%
<cfset XResult = xmlSearch(XMLObject, "/info[4]")> 0%
<cfset XResult = xmlSearch(XMLObject, "/info(1)")> 0%
<cfset XResult = xmlSearch(XMLObject, "/info[first()+2]")> 0%
<cfset XResult = xmlSearch(XMLObject, "/info[last()-2]")> 0%
What does the cfNTauthenticate tag do?
Returns the version of Windows NT running on the web server 0%
It verifies if the database being used by the application is running 0%
Authenticates a user name and password against the Windows NT domain 0%
It authenticates an original version of the ColdFusion server 0%
What does the cfproperty tag do?
Defines properties of a ColdFusion file 0%
Defines properties of a ColdFusion user defined function 0%
Sets properties for the ColdFusion application 0%
Defines properties of a ColdFusion component 0%
What does the Randomize function return?
A pseudo-random integer number, in the range 0-5 0%
A pseudo-random number, in the range 0-10 0%
A pseudo-random decimal number, in the range 0-100 0%
A pseudo-random decimal number, in the range 0-1 0%
What happens when the following code is included in a cfm file: <cflog file="myAppLog" text="User Kim logged on.">
"User Kim logged on" will be displayed in the browser 0%
A new log file by the name of Kim will be created 0%
"User Kim logged on" will replace the last record in the ColdFusion log file 0%
"User Kim logged on" will be appended to the ColdFusion log file 0%
What is correct syntax for accessing an item of a structure?
StructFind(item, struct) 0%
StructFind(struct, item) 0%
FindStruct(struct, item) 0%
FindStruct(item, struct) 0%
What is the default value for the encoding parameter of the hash function?
UTF-8 0%
It is specified by the defaultCharset entry in the neo-runtime.xml file 0%
It varies depending upon the locale settings of your computer 0%
ASCII 0%
EBCDIC 0%
UCS-2 0%
UTF-16 0%
What is the output of the following code: <cffunction name="thefunc" returntype="numeric"> <cfargument name="x" required="yes" type="numeric" default=2> <cfreturn x*x> </cffunction> <cfoutput> ...
What is the output of the following code: <cfoutput> #dateformat(CreateDate(2001,08,10),"dd,mmm,yyyy")# </cfoutput>
8,OCT,2001 0%
10,08,2001 0%
Aug,10,2001 0%
10,Aug,2001 0%
What is the output of the following code: <cfoutput> <cfset stringToSearch = "The quick brown fox jumped over the lazy dog."> #find("the",stringToSearch)# #find("the",stringToSearch,35)# ...
3300 0%
0 0 33 0%
0 33 0 0%
33 0 0 0%
What is the output of the following code: <cfoutput>#IncrementValue(123.35)#</cfoutput>
123 0%
124 0%
123.5 0%
122 0%
100 0%
What is the output of the following code: <cfoutput>reverse(6*2) equals #reverse(6*2)#</cfoutput>
reverse(6*2) equals 12 0%
reverse(2*6) equals 21 0%
reverse(6*2) equals 21 0%
reverse(2*6) equals 12 0%
What is the output of the following code: <CFPARAM DEFAULT="ProjectManager" NAME="Status"> <CFPARAM DEFAULT="Six Sigma" NAME="ProjectType"> <CFIF IsDefined("FORM.Status")> Welcome <CFOUTPUT>#FORM....
Welcome ProjectManager 0%
You are not a ProjectManager 0%
Welcome 0%
Six Sigma ProjectManager 0%
You are not a Six Sigma 0%
None of the above 0%
What is the output of the following code: <cfscript> function autoLeadIn(string,count) { output = ''; if(Trim(string) NEQ '') { textarray = ListToArray(string, " "); if(ArrayLen(textarray) LTE c...
qwerty asdfg, poiuy, 0%
qwerty asdfg, poiuy 0%
qwerty asdfg 0%
qwerty asdfg, poiuy, zxcvb 0%
What is the output of the following code: <cfscript> function calculateresult() { var a=55; var b=5; b=a+b; b=b+b; return b; } </cfscript> <cfoutput>#calculateresult()#</cfoutput>
100 0%
120 0%
10 0%
65 0%
What is the output of the following code: <cfset myArray = ArrayNew(1)> <cfset myArray[1] = "Test Value"> <cfset temp = ArrayAppend(myArray, "Akash")> <cfset temp = ArrayAppend(myArray, "P...
This array has 1 elements 0%
This array has 5 elements 0%
Test Value, Akash, Peterson, Dave Heartsdale, Aaron Smith 0%
This array has Test Value, Akash, Peterson, Dave Heartsdale, Aaron Smith 0%
What is the output of the following code: <cfsilent> <cfset a = 100> <cfset b = 99> <cfset c = b-a> <cfoutput>Inside cfsilent block<br> b-a = #c#</cfoutput><br> </cfsilent> <cfoutput> ...
-1=-1 0%
b-a=c 0%
b-a = -1 0%
Nothing will be displayed 0%
What is the output of the following code: <cfoutput>#REReplace("I love jelly","jell(y|ies)","cookies")#</cfoutput>
I love jelly 0%
I love jellies 0%
I Love jelly, cookies 0%
I love cookies 0%
What is the output of the following code: <cfscript> function calculateresult() { var a=55; var b=5; b=b-a*b+a; return b; } </cfscript> <cfoutput>#calculateresult()#</cfoutput>
-215 0%
215 0%
-325 0%
325 0%
What is the output of the following code: <cfset strabc=setVariable("abc","abc123")> <cfset strxyz=setVariable("xyz","xyz321")> <cfoutput> strabc = #strabc# , strxyz = #strxyz# </cfoutput>
strabc = abc , strxyz = xyz 0%
strabc = 123 , strxyz = 321 0%
strabc = abc123 , strxyz = xyz321 0%
strabc = abc 123 , strxyz = xyz 321 0%
strabc = abc,123 , strxyz = xyz,321 0%
None of the above 0%
What is the output of the following code: <cfset stringToSearch = "The quick brown fox jumped over the lazy dog."> <cfoutput> #findoneof("aeiou",stringToSearch)# #findoneof("aeiou",stringToSearch,4...
3 6 0 0%
360 0%
3 6 0%
3 6 0 0 0%
What is the output of the following code: <cfset yourDate = CreateDate(2002, 11, 23)> <cfoutput> This is day #Day(YourDate)# in the month of #MonthAsString(Month(yourDate))#, which has #...
This is day 30 in the month of November, which has 30 days 0%
This is day 23 in the month of November, which has 30 days 0%
This is day 30 in the month of March, which has 30 days 0%
23rd of November, which has 30 days 0%
What is the result of the following code: <cfset mystring = "'Newton's Law', 'Fermat's Theorem'"> <cfoutput> #PreserveSingleQuotes(mystring)# </cfoutput>
'Newton's Law', 'Fermat's Theorem' 0%
Newton's Law, Fermat's Theorem 0%
"Newton's Law", "Fermat's Theorem" 0%
'Newtons Law', 'Fermats Theorem' 0%
What will be the output of the given expression: evaluate("23" & 2 + 5)
51 0%
30 0%
237 0%
230 0%
What will be the result of placing the following code in any cfm file: <!--- <cflock timeout=20 scope="Session" type="Exclusive"> <cfset StructDelete(Session, "ShoppingCartItems")> </cflock> --->
The page will be timed out after 20 seconds 0%
The current session will time out after 20 minutes 0%
Delete all session variables 0%
Nothing will happen 0%
What will the following code do when included in a ColdFusion application? <cfloop collection="#session#" item="j"> <cfoutput>#j# has value of : #session[j]#<br></cfoutput> </cfloop>
It will list out all the application variables 0%
It will list out all the cookies 0%
It will list out all the session variables 0%
It will list out the Html header 0%
What will the xInfo variable contain: <cfset xInfo = objXML.xmlRoot.xmlChildren[6]["info"].xmltext>
It returns the text of the 6th tag named info 0%
It returns the text of the 5th tag named info 0%
It returns the attribute of the 5th tag named info 0%
It returns the text of the 5th element named info surrounded by the <info></info> tags 0%
None of the above 0%
What will XResult contain: <cfset XResult = xmlFind(XMLObject, "//info@size='3'")>
All the info elements that have an attribute called size with a value of 3 0%
The size attribute of the third info node 0%
The info attribute of the third size node 0%
The statement contains an error 0%
What will XResult contain: <cfset XResult = xmlSearch(XMLObject, "//@size")>
An array containing the attributes named size that fall directly beneath the root node 0%
An array containing the nodes named size that fall directly beneath the root node 0%
An array containing the attributes named size that fall anywhere beneath the root node 0%
An array containing the nodes named size that fall anywhere beneath the root node 0%
An array containing the elements named size that fall directly beneath the root node 0%
What will XResult contain: <cfset XResult = xmlSearch(XMLObject, "//info")>
An array containing the info nodes that fall directly beneath the root node 0%
An array containing the info nodes that fall anywhere beneath the root node 0%
All info nodes will be returned along with their child and sub-child nodes 0%
This XPath expression is erroneous 0%
An array containing the attributes of all the info nodes that fall anywhere beneath the root node 0%
When would you prefer to use the <cfstoredproc> tag in place of the <cfquery> tag?
When you want to execute a stored procedure instead of an in-line query 0%
When you want to execute a stored procedure that returns multiple recordsets 0%
When you want to execute a stored procedure that accepts parameters 0%
Never, because <cfstoredproc> doesn't offer any advantages over <cfquery> 0%
When would you prefer to use the encrypt/decrypt functions instead of the hash function?
When you want to encrypt blocks of text larger than 1 kb 0%
Hash is a superior function, it is always preferred over encrypt/decrypt 0%
When you want the ability to decrypt the encrypted string 0%
When you want to use Blowfish algorithm for encryption 0%
When you want to use MD5 algorithm for encryption 0%
which ColdFusion tag is used to define the application scope like, enabling sessions, setting timeouts and specifying client variable storage?
cfsession 0%
cfcookie 0%
cfapplication 0%
cfindex 0%
Which ColdFusion tag is used to import a Java Server Page (JSP) tag library?
cfjimport 0%
cfimport 0%
cfinclude 0%
cfinsert 0%
cfsetting 0%
Which ColdFusion tag is used to stop the processing on the current page and opens a new ColdFusion or html file?
cfredirection 0%
cfrelocate 0%
cflocation 0%
cfnewpage 0%
Which encryption algorithms are supported by the encrypt/decrypt functions?
MD5 0%
SHA 0%
DES 0%
AES 0%
Blowfish 0%
Which encryption algorithms does the hash function support?
CFMX_COMPAT 0%
MD5 0%
SHA 0%
SHA-256 0%
SHA-384 0%
SHA-512 0%
CBC 0%
Blowfish 0%
Which encryption engine is used by the ColdFusion MX encrypt and hash functions?
PGP 8.0 0%
Java Cryptography Extension (JCE) 0%
CryptoText Encryption Library 0%
Microsoft High Encryption Pack 0%
Which function has been used to generated the following output? pro%20discount
URLEncode 0%
HtmlEditFormat 0%
UrlDecode 0%
URLEncodedFormat 0%
Which of the below statements are correct regarding the following code: <cfset a = GetTickCount()> <cfloop from="1" to="10000" index="i"> </cfloop> <cfset b = GetTickCount()> <cfscript> c = GetTic...
The results are always the same each time the code is run 0%
The results vary each time the code is run 0%
This code will give an error when run 0%
Which of the following allows the use of CFML tags within its body?
UDF 0%
CFScript 0%
UDF and CFScript 0%
None of the above 0%
Which of the following attributes of the cfquery tag was introduced in ColdFusion MX 7?
username 0%
debug 0%
result 0%
timeout 0%
Which of the following can be used to convert real number into integers?
Ceiling 0%
Int 0%
Round 0%
Fix 0%
All of the above 0%
a, c, and d 0%
Which of the following characters need escaping?
# 0%
" 0%
' 0%
@ 0%
All of the above 0%
a, b, and c 0%
Which of the following ColdFusion tags aborts the processing of the current ColdFusion page?
cfabort 0%
cfabandon 0%
cfkill 0%
cfswitch 0%
Which of the following ColdFusion tags is used to get the elements, variables and values of ColdFusion objects?
cfcollect 0%
cfcomponent 0%
cfdump 0%
cfdocument 0%
Which of the following constitute the common characteristics shared by most of the Coldfusion Tags?
They start with cf 0%
They have a closing tag as well 0%
They have attributes and most attributes have values 0%
All of the above 0%
Both a and b 0%
Which of the following constitute the core components of ColdFusion MX?
ColdFusion application server 0%
ColdFusion Markup Language 0%
ColdFusion MX Administrator 0%
All of the above 0%
Which of the following constitute the four categories of the Coldfusion data types?
application, binary, variant, and local 0%
simple, complex, aggregate, and binary 0%
primary, secondary, complex, and object 0%
simple, complex, binary, and object 0%
Which of the following constitutes CFML?
Functions and expressions 0%
Variables and constants 0%
Flow control structures 0%
All of the above 0%
both a and b 0%
Which of the following does not constitute flow control tag in Coldfusion?
cfabort 0%
cfset 0%
cfdefaultcase 0%
cfloop 0%
Which of the following functions are specially used with regular expressions?
REFind 0%
REFindNoCase 0%
REReplace 0%
REReplaceNoCase 0%
All of the above 0%
Which of the following functions is not available with Coldfusion arrays?
ArrayLen 0%
ArraySort 0%
ArrayDelete 0%
ArrayAppend 0%
Which of the following has the highest operator precedence?
Which of the following is a correct way of commenting in Coldfusion?
// 0%
<!-- --> 0%
/* */ 0%
<!--- ---> 0%
Which of the following is an incorrect floop syntax:
<cfloop index . . . 0%
<cfloop counter . . . 0%
<cfloop condition. . . 0%
<cfloop query . . . <cfloop list . . . 0%
Which of the following is an invalid variable scope?
Super 0%
This 0%
Caller 0%
Server 0%
Which of the following is not a valid array function?
ArrayAppend 0%
ArrayInsertAt 0%
ArraySize 0%
ArrayPrepend 0%
None of the above 0%
Which of the following is not an in-built complex data type in Coldfusion?
query 0%
array 0%
hashtable 0%
structure 0%
Which of the following is not passed as reference to the object?
structure 0%
array 0%
cfobject 0%
query 0%
Which of the following is useful in Dynamic Evaluation?
DEval 0%
Dynamic 0%
Evaluate 0%
Eval 0%
Which of the following makes CFMX7 better than the previous MX version?
It has added support for dot notation within a recordset name 0%
It has added result attribute 0%
Deprecated connectString, dbName, dbServer, provider, and providerDSN attributes 0%
It has added cfquery.ExecutionTime 0%
Which of the following statement is correct?
The coldfusion script is contrary to Java script 0%
The coldfusion script runs on client system 0%
The coldfusion script is used for creating user defined functions 0%
The coldfusion script provides access to some of the in-built coldfusion functions 0%
Which of the following statement(s) are correct?
<cfdirectory directory="//12.12.54.65/c/" name="dirQuery" action="LIST"> 0%
<cfdirectory directory="c:inetpubwwwroot" name="dirQuery" action="LIST"> 0%
<cfdirectory directory="http://12.12.54.65/c/" name="dirQuery" action="LIST"> 0%
Both a and b 0%
Both b and c 0%
Which of the following statements about User defined functions (UDFs) are correct.
<cfscript> code can call functions but not tags 0%
User defined functions written in <cfscript> can call CFML tags 0%
<cffunction> is one of the tags in ColdFusion MX used for creating UDFs 0%
<cfreturn> is one of the tags in ColdFusion MX used for creating UDFs 0%
Which of the following statements are true when you upload an image file using the <cffile> tag?
You can know the size and dimensions of the image before actually uploading the image 0%
You can give your own file name when the file is uploaded for the first time 0%
You can set the action parameter value to "copy, rename" 0%
Both a and b 0%
Both b and c 0%
Which of the following statements is correct with regard to Coldfusion Comments?
Nesting of coldfusion comments is not allowed 0%
The comments can be embedded in a function or tag name 0%
The comments are allowed in the body of the document only 0%
The comments are cleared by coldfusion engine before presenting output to the browser 0%
Which of the following statements is correct with regard to Coldfusion functions?
Nesting of functions is not allowed 0%
Functions can be created using cffunction or cfscript tag 0%
Function may return a value 0%
In-built functions can't be used with user defined ones 0%
Which of the following statements is correct with regard to Function?
Positional arguments must be used in Function 0%
Named arguments must be used in Function 0%
Either named or positional arguments can be used in Function 0%
Both named and positional arguments can be used in Function 0%
Which of the following statements is correct with regard to user defined functions?
Function overloading is allowed in user defined functions 0%
Function definitions can be nested in user defined functions 0%
Function name must be different from the inbuilt function name, however it can be same as some variable 0%
A user defined function can be recursive 0%
Which of the following statements is incorrect with regard to Coldfusion Tags?
Cold fusion has vast library of in built tags 0%
CFX tags are written using java or C++ 0%
They must have a closing tag 0%
The tags without body can be closed using '/>' on the same line 0%
Which of the following statements regarding placing meta tags at the location *********** in the following code are correct? <cfset browsers="MSIE,Mozilla"> <cfif FindNoCase(browsers,#CGI.HTTP_USE...
The meta tags will be hidden from all browser users 0%
The meta tags will be hidden from Opera users 0%
The meta tags will be hidden from unknown spiders 0%
The meta tags will be hidden from MSIE and Mozilla users 0%
None of the above 0%
Which of the following statements with respect to the below code is correct? <cfset RandomItem = RandRange(1, greatoffers.recordcount)> <CFOUTPUT QUERY="greatoffers" MAXROWS=1 STARTROW=#RandomItem...
This code will display the first record from the complete greatoffers table 0%
This code will display a random record from the complete greatoffers table leaving out the first record 0%
This code will display a random record from the complete greatoffers table 0%
This code will display the last record from the complete greatoffers table 0%
This code will display a random record from the complete greatoffers table leaving out the last record 0%
Which of the following structure assignments is correct?
<cfset objStruct.value1 = "value"> 0%
<cfset objStruct[0].value1 = "value"> 0%
<cfset objStruct[0] = "value"> 0%
All the above 0%
Which of the following tags do not work in the ColdFusion MX series?
cfauthenticate 0%
cfapplication 0%
cfloginuser 0%
cfmodule 0%
Which of the following tags is not useful in handling exceptions?
cftry 0%
cfcatch 0%
cfrethrow 0%
cfabort 0%
cferror 0%
Which of the following tags was introduced in the ColdFusion MX series?
cfcalendar 0%
cfapplet 0%
cfbreak 0%
cfdirectory 0%
Which of the following techniques allow the Coldfusion code to be used at many places with in an application?
cfinclude tag 0%
User Defined functions 0%
CFML tags and CFX 0%
Both a and c 0%
a, b, and c 0%
Which of the following verity query types is not valid?
Natural 0%
Search 0%
Internet 0%
Simple 0%
Explicit 0%
Which of the given options is correct for the following code? <cfupdate datasource="MIS" tablename="user">
cfupdate is a tag and datasource is a tag value 0%
cfupdate is an attribute and user is attribute value 0%
tablename is a tag and user is the tag value 0%
datasource is the attribute name and MIS is the attribute value 0%
Which of the statements with respect to the following code is correct? <cffunction name="daysmonths" returntype="date"> <cfreturn dateadd("d",1,Now())> </cffunction> <cfoutput> #daysmonths()# </cf...
daysmonths() is a user defined function 0%
date() is a user defined function 0%
The output will display tomorrows date 0%
The output will display today's date 0%
The cffunction tags are optional in this code 0%
Which operator will be evaluated first in the following statement: <cfquery name="GetEmpData" datasource="myDSN"> select (age + 3 * 4 / 2 - 8) from emp </cfquery>
With respect to the following code, which option is correct? <cfoutput> #GetHttpTimeString(now())# </cfoutput>
It will get the current GMT time 0%
It will get the current time of the users computer 0%
It converts the current time into a string and stores it in a variable 0%
It will get the current web server time 0%
You created a Coldfusion form to get the guest information from your website. The name of the input elements is same as that in the database. The name of the data source is "GuestDSN" and the table...
<cfinsert DSN="GuestDSN" table="TbGuest"> 0%
<cfinsert datasource="GuestDSN" tablename="TbGuest"> 0%
<insert datasource="GuestDSN" tablename="TbGuest"> 0%
<insert DSN="GuestDSN" table="TbGuest"> 0%
You have created an extension to Coldfusion tag named "CalcClass." It needs one integer argument named "IntValue." Which of the following enables you to call that in the Coldfusion code?
<cftag class=CalcClass IntValue=20> 0%
<cfx name=CalcClass IntValue=20> 0%
<cfx_CalcClass IntValue=20> 0%
<cfx tag=CalcClass IntValue=20> 0%
You have defined a field (EmailAd) on your user registration form to get the user email. Which of the following helps you validate the data before passing it to the database?
IsValid("email", Form.EmailAd) 0%
IsEmail(Form.EmailAd) 0%
IsEmail(#Form.EmailAd#) 0%
IsValidType("email", Form.EmailAd) 0%
You have retrieved the list of all the customers and the products bought for the day, using a cfquery. The structure "CNameStr" stores the value of a customer's first, middle, and the last name in ...
<cfif StructKeyExists(CNameStr,Middle)> 0%
<cfif StructKeyExists(CNameStr,"Middle")> 0%
<cfif StructKeyExists("CNameStr","Middle")> 0%
<cfif KeyExists("CNameStr",Middle)> 0%
<cfif KeyExists(CNameStr,Middle)> 0%
You have to pass a string named "StrName" and an array named "ArrItems" to a custom tag. Which of the following ways serves the purpose?
<cf_CustTag StrName,ArrItems> 0%
<cf_CustTag stringval=StrName arrayval=ArrItems> 0%
<cf_CustTag stringval=#StrName# arrayval=#ArrItems#> 0%
<cf_CustTag #StrName# #ArrItems#> 0%
You have written a cfquery ("HireSalaries") to retrieve two derived columns "Year" and "AverageHike." Which of the following is the right way to plot an area type line graph with this cfquery?
<cfchartseries chartWidth=380 show3D="yes"> <cfchart type="area" query="HireSalaries" valueColumn="AverageHike" itemColumn="Year"/></cfchartseries> 0%
<cfchart chartWidth=380 show3D="yes"> <cfchartseries type="area" query="HireSalaries" value="AverageHike" item="Year"/></cfchart> 0%
<cfchart chartWidth=380 show3D="yes"> <cfchartseries type="area" query="HireSalaries" valueColumn="AverageHike" itemColumn="Year"/></cfchart> 0%
You need to create a website using ColdFusion that spans across several servers. What will be the preferred technique for maintaining session state across the servers considering that some users mi...
Use session variables 0%
Use the CFID and CFTOKEN cookies to track sessions 0%
Pass the CFID and CFTOKEN variables to every URL, form action and hyperlink and set the ClientManagement attribute of your CFApplication tag to "yes" 0%
Pass the CFID and CFTOKEN variables to every URL, form action and hyperlink and set the ClientManagement attribute of your CFApplication tag to "no". Set the "ClientStorage" attribute of the CFAPPLICATION tag to your specified datasource 0%
This cannot be accomplished 0%
You need to set the value for 'UserName' to ''Guest'' if a user does not fill in the user name in the Coldfusion form.��Which of the following ways help you implement this?
<cfset Form.UserName=''Guest''> 0%
<cfparam name=''Form.UserName'' default=''Guest''> 0%
<cfparam name=''Form.UserName'' optional=''Guest''> 0%
<cfparam name=''Form.UserName'' value=''Guest''> 0%
You want create PDF files of your XHTML documents using ColdFusion MX. How can you do this?
It cannot be done 0%
You will have to write your own highly complex code for doing this 0%
You can use XSLT and XSL-FO to render the XHTML as a PDF 0%
There is a function available in ColdFusion for creating PDFs 0%
You want to display the titles of books that meet the following criteria: 1. Purchased before November 11, 2002 2. Price is less than $500 or greater than $900 You want to sort the result by the ...
SELECT book_title FROM books WHERE price between 500 and 900 AND purchase_date < '11/11/2002' ORDER BY purchase_date; 0%
SELECT book_title FROM books WHERE price IN (500, 900) AND purchase_date < '11/11/2002' ORDER BY purchase date ASC; 0%
SELECT book_title FROM books WHERE price < 500 OR>900 AND purchase_date DESC; 0%
SELECT Book_title FROM books WHERE price < 500 OR price > 900 AND purchase_date < '11/11/2002' ORDER BY purchase date DESC; 0%
You wrote the following code to set the prices of the items in an array: <cfset numArray = ArrayNew(1)> <cfset ArraySet(numArray, 1, 8 ,25)> <cfset numArray[3] = "225"> <cfset PriceFound = False> ...
Three lines for 'Searching element . . . ' and one line indicating the 'PriceFound at ElementNo 3' 0%
Two lines for 'Searching element . . . ' and one line indicating the 'PriceFound at ElementNo 2' 0%
Eight lines for 'Searching element . . . ' and one line indicating the 'PriceFound at ElementNo 3' 0%
A syntax error 0%
Your website has to display the personal information of the user when he logs in. The table storing the personal details is 'TbUser' (with primary key Uid) and the data source is 'UserDSN.' The use...
<cfselect name="GetUserDetails" DSN="UserDSN"> select * from TbUser where Uid = #This.Uid# </cfselect> 0%
<cfquery name="GetUserDetails" datasource="UserDSN"> select * from TbUser where Uid = #URL.Uid# </cfquery> 0%
<cfselect name="GetUserDetails" DSN="UserDSN"> select * from TbUser where Uid = #Form.Uid# </cfselect> 0%
<cfquery datasource="UserDSN"> select * from TbUser where Uid = #URL.Uid# </cfquery> 0%