Web Developer Framework 4.0 Sample Questions – 28

Question: You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. You use Microsoft ADO.NET Entity Data Model (EDM) to model entities. You create an entity named Person with a schema defined by the following XML fragment. <EntityType Name=”CPerson”> <Key> <PropertyRef Name=”PersonId” /> </Key> <Property… Continue reading

Web Developer Framework 4.0 Sample Questions – 27

Question: Your Windows Communication Foundation (WCF) client application uses HTTP to communicate with the service. You need to enable message logging and include all security information such as tokens and nonces in logged messages.What should you do In the application configuration file, add the logKnownPii attribute to the message logging… Continue reading

Web Developer Framework 4.0 Sample Questions – 26

Question: You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. The application connects to a Microsoft SQL Server database. The application uses the following object query to load a product from the database. (Line numbers are included for reference only.) 01 using (AdventureWorksEntities advWorksContext… Continue reading

Web Developer Framework 4.0 Sample Questions – 25

Question: You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. The application connects to a Microsoft SQL Server database. The application has two DataTable objects that reference the Customers and Orders tables in the database. The application contains the following code segment. (Line numbers… Continue reading

Web Developer Framework 4.0 Sample Questions – 24

Question: You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. The application connects to a Microsoft SQL Server 2008 database. You create classes by using LINQ to SQL based on the records shown in the You need to create a LINQ query to retrieve… Continue reading

Web Developer Framework 4.0 Sample Questions – 23

Question: You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. The application connects to a Microsoft SQL Server 2008 database. The database includes a table named dbo.Documents that contains a column with large binary data. You are creating the Data Access Layer (DAL). You… Continue reading

Web Developer Framework 4.0 Sample Questions – 22

Question: A Windows Communication Foundation (WCF) application uses a data contract that has several data members. You need the application to throw a SerializationException if any of the data members are not present when a serialized instance of the data contract is deserialized.What should you do Add the KnownType attribute… Continue reading

Web Developer Framework 4.0 Sample Questions – 21

Question: You are creating a Windows Communication Foundation (WCF) service that is implemented as follows. (Line numbers are included for reference only.) 01<ServiceContract()> 02<ServiceBehavior(IncludeExceptionDetailInFaults:=True)> 03Public Class OrderService 04 05<OperationContract()> 06Public Sub SubmitOrder(ByVal anOrder As Order) 07 08Try 09 10Catch ex As DivideByZeroException 11 12 End Try 13 End Sub 14… Continue reading

Web Developer Framework 4.0 Sample Questions – 20

Question: You need to design a deployment solution for the rewritten Web application. Which approach should you recommend. Deploy the rewritten Web application to the existing file path on each server in the Web farm. Compile the rewritten Web application and deploy the compiled library to the global assembly cache…. Continue reading

Web Developer Framework 4.0 Sample Questions – 19

Question: You are developing an ASP.NET Web page. The page includes the following EntityDataSource control. <asp:EntityDataSource ID=”EntityDataSource1″ runat=”server”ConnectionString=”name=AdventureWorksEntities”DefaultContainerName=”AdventureWorksEntities” EnableFlattening=”False”EntitySetName=”Products” /> The page must filter the data that is displayed in a grid based on a query string parameter named ProductPrefix. The grid must display products whose ProductName starts with the… Continue reading