EnsurepassQuestion 71 You want to delete an Art entity from the ColdFusion ORM and from the database. The array of Art entities is stored within the array aArt, and the entity to be deleted is the second member of the array. The primary key property of the Art entity is artId. Which statement deletes this entity?   A. arrayDeleteAt(aArt, 2); B. aArt[2] = null; C. entityDelete(aArt[2].artId); D. entityDelete(aArt[2]);   Answer: D     Question 72 You are utilizing ORM in Read more [...]
EnsurepassQuestion 61 Given the following code: <cfcomponent> <cfset x = 1> <cfset y = 2> <cffunction name="F1" access="remote"> <cfset var x = 5> <cfset y = 3> <cfreturn x + y> </cffunction> </cfcomponent> Which value is returned from function F1?   A. 3 B. 4 C. 7 D. 8   Answer: D     Question 62 Which attribute is used in a component definition to create an inheritance relationship with a super or base component? Read more [...]
EnsurepassQuestion 51 Your application makes use of functions. Which benefit can be gained by organizing those functions into a ColdFusion component?   A. faster execution B. shared variables scope C. code reuse D. access to application variables   Answer: C   Question 52 You want to create a ColdFusion component using by CFScript with a single public method named doSomething(). Which syntax should you use?   A. <cfcomponent> <cfscript> public function Read more [...]
EnsurepassQuestion 41 In your application you run the following query: <cfquery datasource="test" name="getUsers"> SELECT id, name, email FROM users; </cfquery> Which query tag allows you to query the results of the getUsers query?   A. <cfquery datasource="getusers" /> B. <cfquery dbtype="query" /> C. <cfquery dbtype="datasource" /> D. <cfquery dbtype="getusers" />   Answer: B     Question 42 You capture the RESULT structure of a Read more [...]
EnsurepassQuestion 21 Which <cfthread> tag action allows code between the starting and ending <cfthread> tags?   A. run B. terminate C. sleep D. join   Answer: A     Question 22 You are using <cfajaxproxy> to retrieve data asynchronously from a CFC function on the server. Which data format is used to send back the data response?   A. plain text B. AMF C. JSON D. XML   Answer: C     Question 23 The following CFM page named input.cfm Read more [...]
EnsurepassQuestion 11 When should you use the <cfthrow> tag?   A. to consistently handle exceptions in the Application.cfc onError method B. to throw a message into the JMS message queue for processing C. to write a diagnostic message to the error.log file D. to consistently handle all syntax errors throughout your application   Answer: A     Question 12 Given the following code: <cferror type="validation" template="handler.cfm"/> <cfform> Enter a value: Read more [...]
EnsurepassQuestion 1 Given the following code stub: <cfset obj = {key='Apple',basic=['one','two']} /> Which returns the string "two"?   A. obj.key.basic B. obj.basic[2] C. obj.basic[1] D. obj.basic.2   Answer: B     Question 2 Given the following snippet: <cfset x=2> <cfoutput> #--x# - #x++# </cfoutput> What is the output?   A. 1 - 1 B. 1 - 3 C. 1 - 2 D. -1   Answer: A     Question 3 What is the value of the variable Read more [...]