Question:* I need to make multiple, related changes to a database, but all those changes must be made w/o errors before I actually commit them. Which tag should I use?
Answer: • cftransaction
Question:* In the Directory Watcher event gateway's configuration file, which of the following property is required?
Answer: • directory
Question:* If I suspect my ColdFusion is encountering errors while sending email via SMTP, where should I look for clues?
Answer: • in the mail.log file inside the ColdFusion log directory
Question:* What is the default delimiter when looping through a list with <cfloop>?
Answer: • comma (,)
Question:* What is the correct output in the following code: <cfset sweek = "Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday" /> <cfoutput>#ListGetAt(sweek, 3)#</cfoutput>
Answer: • Wednesday
Question:* Which of these is the correct syntax for a CFML comment?
Answer: • <!--- my comment --->
Question:* Which is a required attribute of <cfmail>?
Answer: • All of these
Question:* Arrays in ColdFusion start at which index?
Answer: • 1
Question:* I want to invoke a CFC method from within a <cfscript> tag. Which function must I use to do this?
Answer: • CreateObject
Question:* The following code does what? <cfoutput>#DateFormat(Now(), "m/d/yyyy")#</cfoutput>
Answer: • Prints the current date in M/D/YYYY format
Question:* Which of these is NOT a valid CFML tag?
Answer: • cfchoice
Question:* Which Client variables are reserved?
Answer: • All of these
Question:* The CGI scope is read only
Answer: • True
Question:* Which is a required method in Application.cfc?
Answer: • OnApplicationStart
Question:* What is the Code Compatibility Analyzer?
Answer: • a tool that reviews older cfm pages for deprecated and unsupported cfml tags.
Question:* Where can I find the Code Compatibility Analyzer?
Answer: • In the Debugging & Logging section of your ColdFusion Administrator interface.
Question:* True or False: Unlike many programming languages, the first index in an array in Coldfusion is 1, instead of 0.
Answer: • True
Question:* Which of the following is not a ColdFusion application framework?
Answer: • Zend
Question:* True or False? You can run a PL/SQL or TSQL block inside a cfquery.
Answer: • TRUE.
Question:* True or False: You can manage multiple ColdFusion servers from a single view within Adobe ColdFusion Builder?
Answer: • True
Question:* In ColdFusion 10, Adobe replaced their JRun application server with:
Answer: • Tomcat
Question:* I want to use a CFC function as a web service. I should set the access attribute of that function to:
Answer: • remote
Question:* True or False? You cannot use multiple <cfmailparam> tags inside of a <cfmail> tags.
Answer: • False
Question:* <cffunction name="myFunction"> <cfargument name="arg1" default="Default"> <cfreturn arg1> </cffunction> <cfoutput>#myFunction()#</cfoutput> What will be outputted after the above code is executed?
Answer: • The string 'Default'.
Question:* True or False? The <cfregistry> tag is deprecated on UNIX platforms.
Answer: • True
Question:* <cfform> variables are stored in what?
Answer: • a structure called FORM
Question:* Which of the following ISN'T a method you'd expect to find in Application.cfc?
Answer: • OnServerStart
Question:* Using CFML, how does one check to see if a variable called #myVarName# exists?
Answer: • <cfif IsDefined("myVarName")>...</cfif>
Question:* What is the modulus operator in CFML?
Answer: • Mod
Question:* <cfform> controls cannot be stylized using CSS like conventional HTML form controls.
Answer: • False. CFML form controls are rendered by the browser as conventional HTML form controls and can be formatted/stylized the same way.
Question:* ColdFusion is compiled to what prior to execution?
Answer: • Java bytecode
Question:* In a ColdFusion component, an init() method is mandatory
Answer: • No. Its just a convention
Question:* Which of these is a valid CFML tag?
Answer: • cfsilent
Question:* What ColdFusion tag should one use to help prevent a possible race condition scenario?
Answer: • cflock
Question:* Which of the following is NOT a valid scope type in ColdFusion?
Answer: • component
Question:* True or False: code within a CFThread tag body actually executes as a function call.
Answer: • True
Question:* How would you access the first element of an array called attendees?
Answer: • attendees[1]
Question:* What should I do if I've forgotten the CF Administrator password on a ColdFusion 10 server?
Answer: • Use the passwordreset script inside the bin folder to create a new password.
Question:* The <cffeed> tag can:
Answer: • Read and create both RSS and Atom feeds.
Question:* True or false: It is necessary to add a default parameter in a function whose required type is set to no.
Answer: • False
Question:* Which ColdFusion tag invokes a custom tag for use in ColdFusion application pages?
Answer: • cfmodule
Question:* Can you nest one ColdFusion comment inside of another ColdFusion comment?
Answer: • Yes
Question:* What does the name attribute of the <cfhttp> tag do?
Answer: • It creates a query object from the returned HTTP response body with the name you provide.
Question:* Which of the following always returns TRUE?
Answer: • IsDefined("CGI.cgivariable")
Question:* Exceptions that are handled and catched by a <cfcatch> tag are automatically logged in the Application.log file.
Answer: • FALSE
Question:* True or False? In ColdFusion 10, if you don't specify strict attribute for <CFFILE action="upload">, you should specify MIME types for the accept attribute.
Answer: • True
Question:* Determine the output below: <cfset items = "abc,efg,hij;klm;nop,qrs,tuv"> <cfset item = ListGetAt(items, 2, ";")> <cfoutput> #item# </cfoutput>
Answer: • klm
Question:* Determine the output below: <cfset session.name = "Dave"> <cfset variables.name = "John"> <cfset application.name = "TestApp"> <cfset server.name = "TestServer"> <cfoutput>#name#</cfoutput>
Answer: • John
Question:* What is the correct way of getting the last_name of a user from a <cfquery> tag below? <cfquery name="qryUsers" datasource="dsn_name"> SELECT first_name, last_name, email FROM users </cfquery>
Answer: • Both
Question:* What happens to your session when the CF Server is restarted?
Answer: • You lose the session
Question:* ColdFusion syntax supports a do-while loop
Answer: • True
Question:* <cfset x = 123> <cfif x == 123> Hello <cfelse> Goodbye </cfif> The above code will result in:
Answer: • An error.
Question:* Which of the following is correct format of comment within <cfscript> block?
Answer: • // this is a comment
Question:* In a custom tag, which of the following make variable x available on the calling page?
Answer: • <cfset CALLER.x = 123>
Question:* What is the default method for <cfform>?
Answer: • post
Question:* What does the following code result in: <cfset x = {y = 1, z = 2}> <cfif IsArray(x)> Array <cfelse> Struct </cfif>
Answer: • Struct
Question:* True or False: It is a good idea to enable RDS on your ColdFusion production servers.
Answer: • False
Question:* Where is considered the best place to name your application so the request is tied to the right application?
Answer: • Both
Question:* Complete this analogy: In ColdFusion ORM, CFCs are to database tables, as properties are to:
Answer: • Columns
Question:* Which of the following prints out "Fail"?
Answer: • <cfif 0> Success <cfelse> Fail </cfif>
Question:* Can ColdFusion create a CAPTCHA?
Answer: • Yes, with the <cfimage> tag.
Question:* What is the outcome of the following piece of code? <cfset structInsert(CGI, 'newVar','CF',true)/> <cfoutput>#CGI.newVar#</cfoutput>
Answer: • Error
Question:* True or False? In ColdFusion 8, you can upload multiple files at once by setting CFFILE action to "uploadAll"
Answer: • False
Question:* By default, in which scope does a ColdFusion application store login information?
Answer: • Cookie
Question:* Which of the following is NOT a valid Array function?
Answer: • ArrayDelete()
Question:* How many remote IP addresses can access an installation of the free developer edition of Adobe ColdFusion?
Answer: • 2
Question:* Which of the following versions of ColdFusion has passed its core support deadline, but is still within its extended support period?
Answer: • Adobe ColdFusion 8
Question:* Which of the following is NOT a required Application.cfc setting for using ORM?
Answer: • this.ormsettings
Question:* Which of the following IS NOT used to create a XML document object?
Answer: • XMLFormat function
Question:* True or False: For un-scoped or unspecified scope variables, Coldfusion takes into consideration the Cookie scope before the Form scope.
Answer: • False
Question:* Which of the following will result in an error?
Answer: • <cfset listVar = ListNew('a,b,c,d') />
Question:* <cfset x = 123> <!-- <cfset x = 321> --> <cfoutput>#x#</cfoutput> What will be output after the above code executes?
Answer: • 321
Question:* Which of the following are NOT valid CFML to check whether num1 is greater than or equal to num2?
Answer: • <cfif num1 GEQ num2>
Question:* What is the correct output for the following? <cfset str1 = "The quick brown fox jumped over the lazy dog" /> <cfset str2 = Replace(str1, " ", "-") /> <cfoutput>#str2</cfoutput>
Answer: • Nothing. The script throws an error.
Question:* From the below array, how do you access the value "banana"? <cfset arrFruits = ArrayNew(1)> <cfset ArrayAppend(arrFruits, "apple")> <cfset ArrayAppend(arrFruits, "banana")> <cfset ArrayAppend(arrFruits, "mango")>
Answer: • arrFruits["2"] and arrFruits[2]
Question:* Given a page, customtag.cfm, called with <cf_customtag /> will invoke the code twice whereas called with <cf_customtag> will invoke the code once.
Answer: • Yes.
Question:* I just added a record to a table with an auto-incrementing primary key. If I stored the results of my query in a variable called lastRecord, how would I find the primary key of the record I just added?
Answer: • lastRecord.generatedKey
Question:* As in JavaScript, in ColdFusion you can write a function inside another function
Answer: • False
Question:* True or False? Using <cfloop> to loop over a file opens the entire file in memory.
Answer: • False
Question:* True or False? Arrays are passed by reference like Structs.
Answer: • FALSE.
Question:* What does this code do? <cfloop from="Jan 1 2012" to="Dec 31 2012" index="date"> <cfoutput>#DateFormat(date, "dd mmm yyyy")#</cfoutput> </cfloop>
Answer: • Display dates from Jan 1st 2012 to Dec 31st 2012.
No comments:
Post a Comment