2013微軟認(rèn)證考試練習(xí)題及答案(27)

字號:

為大家收集整理了《2013微軟認(rèn)證考試練習(xí)題及答案(27)》供大家參考,希望對大家有所幫助!!!
    QUESTION 51 You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You plan to submit text that contains HTML code to a page in the application. You need to ensure that the HTML code can be submitted successfully without affecting other applications that run on the Web server. What should you do? A.Add the following attribute to the @Page directive. EnableEventValidation="true" B.Add the following attribute to the @Page directive. ValidateRequest="true" C.Set the following value in the Web.config file. D.Set the following value in the Machine.config file.
    Answer: C QUESTION 52 You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. The application consumes an ASMX Web service. The Web service is hosted at the following URL. http://www.contoso.com/TemperatureService/Convert.asmx You need to ensure that the client computers can communicate with the service as part of the configuration. Which code fragment should you use? A. B. C. D.
    Answer: B QUESTION 53 You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a file named movies.xml that contains the following code fragment. You add a Web form to the application. You write the following code segment in the Web form. (Line numbers are included for reference only.) 01
02 06 07
You need to implement the XmlDataSource control to display the XML data in a TreeView control. Which code segment should you insert at line 06? A. B. C. D.
    Answer: A QUESTION 54 You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a FormView control to access the results of a query. The query contains the following fields: EmployeID FirstNam LastNam The user must be able to view and update the FirstName field. You need to define the control definition for the FirstName field in the FormView control. Which code fragment should you use? A." /> B." /> C.’ /> D.’ />
    Answer: C QUESTION 55 You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. The application contains a DataSourceControl named CategoriesDataSource that is bound to a Microsoft SQL Server 2005 table. The CategoryName column is the primary key of the table. You write the following code fragment in a FormView control. (Line numbers are included for reference only.) 01 02 Category: 03 09 10 You need to ensure that the changes made to the CategoryID field can be written to the database. Which code fragment should you insert at line 04? A.SelectedValue=’<%# Eval("CategoryID") %>’ B.SelectedValue=’<%# Bind("CategoryID") %>’ C.SelectedValue=’<%# Eval("CategoryName") %>’ D.SelectedValue=’<%# Bind("CategoryName") %>’
    Answer: B