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

Web Developer Framework 4.0 Sample Questions – 18

Question: You are debugging an ASP.NET Web page. The page includes the following method. [WebMethod] public string GetServerString() {& } The page also includes the following markup. <asp:ScriptManager ID=”sm1″ runat=”server” /> The following JavaScript code is used to call the GetServerString method. function GetString() { PageMethods.GetServerString(callbackMethod); } function callbackMethod(str) {&… Continue reading

Web Developer Framework 4.0 Sample Questions – 17

Question: You are developing an ASP.NET templated server control. You need to ensure that a new ID namespace is created within the page control hierarchy when the control is added to a page. Which interface should you implement on the control? IDataItemContainer INamingContainer IDataKeysControl IExtenderControl Correct Answer: 2 Question: You… Continue reading

Web Developer Framework 4.0 Sample Questions – 16

Question: You are developing an ASP.NET Web application. The application will contain a page that is customized for various browsers. The application will use output caching to optimize performance. You need to ensure that the page is cached by browser type and major version only. Which attribute should you add… Continue reading