Adobe ColdFusion Quiz # 4

Instructions
Quiz: Adobe ColdFusion Quiz # 4
Subject: Basic Adobe Coldfusion
Total Questions: 30 MCQs
Time: 30 Minutes

Note

  • Do not refresh the page while taking the test.
  • Results along with correct answers will be shown at the end of the test.
Adobe ColdFusion Quiz # 4
Question 1 of 30
00:00
  • Which of the following verity query types is not valid?


  • 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?


  • 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?


  • What will XResult contain:

    <cfset XResult = xmlSearch(XMLObject, "//@size")>



  • Which of the following statements is correct with regard to Function?


  • A company has the following departments:

    Marketing, Designing, Production, Packing

    What will the following query return?

    <cfquery name="GetDeptData" datasource="myDSN">
    select * from departments where department < 'Marketing'
    </cfquery>



  • What does the following code do?

    <cfstoredproc procedure="GetInfo" datasource="MyDSN">
            <cfprocparam value="#variables.ID#" cfsqltype="cf_sql_integer">
            <cfprocresult name="getDepartments" resultSet="1">
            <cfprocresult name="getEmployees" resultSet="2">
    </cfstoredproc>



  • Which of the following tags do not work in ColdFusion MX 7?


  • Which of the following statements is correct with regard to user defined functions?


  • Which of the following constitute the common characteristics shared by most of the Coldfusion Tags?


  • Which of the following does not constitute flow control tag in Coldfusion?


  • 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?


  • Which of the following structure assignments is correct?


  • Which of the following functions is not available with Coldfusion arrays?


  • Which of the following statements are true when you upload an image file using the <cffile> tag?


  • What does the cferror tag do?


  • Which of the following ColdFusion tags is used to get the elements, variables and values of ColdFusion objects?


  • 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 are returned that contain null in column column1?



  • 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#>
    <B>#ProductTitle#</B> - #DollarFormat(greatoffers.Special_Price)#<BR>
    </CFOUTPUT>



  • Which of the following statements is correct with regard to Coldfusion functions?


  • Which operator will be evaluated first in the following statement:

    <cfquery name="GetEmpData" datasource="myDSN">
    select (age + 3 * 4 / 2 - 8) from emp
    </cfquery>




  • Which of the following is not an in-built complex data type in Coldfusion?


  • 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 user id ('Uid') is passed by the login screen. Which of the following helps you retrieve the information from the database?



  • Which ColdFusion tag is used to stop the processing on the current page and opens a new ColdFusion or html file?


  • What is the output of the following code:

    <cfoutput>reverse(6*2) equals #reverse(6*2)#</cfoutput>



  • The <cfhttp> tag can have multiple <cfhttpparam> tags, subject to certain limitations. Which are these limitations?


  • Which of the following constitute the core components of ColdFusion MX?


  • What will the xInfo variable contain:

    <cfset xInfo = objXML.xmlRoot.xmlChildren[6]["info"].xmltext>



  • 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.Status#</CFOUTPUT>
    <CFELSEIF IsDefined("Status")>
    You are not a <CFOUTPUT>#Status#</CFOUTPUT>
    <CFELSE>
    Welcome
    </CFIF>



  • Which ColdFusion tag is used to import a Java Server Page (JSP) tag library?


Liked this quiz? Share it with friends:

Adobe ColdFusion Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

Adobe ColdFusion Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it