PrepAway - Latest Free Exam Questions & Answers

Category: 70-568

Exam 70-568: UPGRADE: Transition your MCPD Enterprise Application Developer Skills to MCPD Enterprise Application Developer 3.5, Part 1

you add to the Web.config file?

You create a Microsoft ASP.NET application by using the Microsoft .NET Framework
version 3.5.You plan to deploy the application to a test server.You need to ensure that during
the initial request to the application, the code-behind files for theWeb pages are compiled.
You also need to optimize the performance of the application. Which code fragment should
you add to the Web.config file?

What should you do?

You create an application by using the Microsoft .NET Framework 3.5 and Microsoft
ADO.NET. The application connects to a Microsoft SQL Server 2005 database. You write
the following two DDL statements.

CREATE TABLE tblCustomers(
CustID INT IDENTITY(1,1) NOT NULL PRIMARY KEY,
CompanyName VARCHAR(50) NOT NULL,
ContactName VARCHAR(100) NOT NULL)
GO
CREATE TABLE tblCustomerOrders(
OrderID INT IDENTITY(1,1) NOT NULL,
CustID INT NOT NULL
FOREIGN KEY REFERENCES tblCustomers(CustID),
OrderDate DateTime NOT NULL)
When a user attempts to delete the data from the tblCustomers table during execution, the
application throws a SqlException exception.The application was designed without any
DataRelation objects.You need to successfully delete the data from the tblCustomers table.
What should you do?

Which task should your code perform?

You create an application by using the Microsoft .NET Framework 3.5 and Microsoft
ADO.NET. The application connects to a Microsoft SQL Server 2005 database.The
application uses a SqlConnection object that is active for the lifetime of a user session.You
need to ensure that the application gracefully handles all the exceptions that cannot be
recovered.Which task should your code perform?

Which code fragment should you insert at line 04?

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 <tr>
02 <td align=”right”><b>Category:</b></td>
03 <td><asp:DropDownList ID=”InsertCategoryDropDownList”
04
05 DataSourceID=”CategoriesDataSource”
06 DataTextField=”CategoryName”
07 DataValueField=”CategoryID”
08 RunAt=”Server” />
09 </td>
10 </tr>
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?

Which code fragment should you use?

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:
EmployeeID
FirstName
LastName
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?

What should you do to ensure that the data in the updated records is validated before it is saved to the data

You create an application by using the Microsoft .NET Framework 3.5 and Microsoft
ADO.NET.The application loads customer records into a DataTable object that is contained
in a database. The records in the DataTable object will be updated by the users of the
application. The data in the updated records might contain errors.You need to ensure that the
data in the updated records is validated before it is saved to the database.What should you do?

Which code fragment should you use?

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
<system.serviceModel> configuration. Which code fragment should you use?

What should you do?

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?


Page 5 of 12« First...34567...10...Last »