The following
name="myVar"/> Which type of data must the myVar variable contain? A. a query object B. a spreadsheet object or comma-delimited text C. any data type D. an array, query, or comma-delimited text
What is the order of precedence (greatest to least) for execution of the
A. onError, cftry, cferror
B.
C.
D.
You have created a ColdFusion component in your application. Inside that component you need to create a property called user that CANNOT be seen outside the component.
Which definition creates a user variable that CANNOT be accessed outside the component?
A. this.user = "joe"
B. var user = "joe"
C. variables.user = "joe"
D. properties.user = "joe"
You have a variable declared with the var keyword. You want to ensure that its visibility is limited to the function. Where must you place the variable in a CFC function to accomplish this?
A. anywhere inside the function
B. inside the function, but before any other functional code
C. inside a pair of
D. inside the CFC, but outside the function
You have read xml stored in a database column into the variable xData.
Which two statements convert the variable from an XML document to an XML object? (Choose two.)
A.
B.
C.
D.
E.
Given the XML object definition:
Which variable correctly outputs the XML document representing the car with name value Ford?
A. #toString(xmlData.cars.car[1])#
B. #toString(xmlData.cars.car[0])#
C. #toString(xmlData.car[1])#
D. #toString(xmlData.cars[1])#
You are using the xmlSearch() function to retrieve data from an XML document. Which function signature most accurately describes the data types of the arguments?
A. xmlSearch(xml object, xpath)
B. xmlSearch(string, xpath);
C. xmlSearch(string, regular expression)
D. xmlSearch(xml object, regular expression)
What is the correct syntax for a CFC function declared within a
A. function myFunction() returntype="struct" { return structNew(); }
B. function myFunct():struct { return structNew(); }
C. function struct myFunction() { return structNew(); }
D. function myFunction() { return structNew(); }
A file name data.txt is stored in the same directory as the currently executing CFM page.
What is the correct syntax to read the contents of the file into a variable named content?
A.
B.
C.
D.
Which code segment can be used to store an array of structures as a client variable?
A.
B.
C.
D.