ASP.Net 3.5 Online Test

You have a Microsoft Windows Communication Foundation (WCF) service created by using Microsoft .NET Framework 3.5.

The service includes the following code:

[ServiceContract(CallbackContract=typeof(IGetDataCallback))]

public interface IDataService

{

[OperationContract]

void GetData();

}

public interface IGetDataCallback

{

[OperationContract]

void DoSomething();

}

To ensure user interface (UI) responsiveness, you want to ensure that the callback method does not run on the same thread as the UI. You want to accomplish this with the least development effort.

What should you do?


You are creating a Windows Communication Foundation service by using Microsoft .NET

Framework 3.5.

You create the following service definition.

[ServiceContract(SessionMode=SessionMode.Required)]

public interface IMyService

{

...

}

You need to custom manage the lifetime of the session.

Which service implementation should you use?


You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a custom control named OrderForm. You write the following code segment.

public delegate void CheckOrderFormEventHandler(EventArgs e);

private static readonly object CheckOrderFormKey = new object();

public event CheckOrderFormEventHandler CheckOrderForm { add { Events.AddHandler(CheckOrderFormKey, value); } remove { Events.RemoveHandler(CheckOrderFormKey, value); } }

You need to provide a method that enables the OrderForm control to raise the CheckOrderForm event. Which code segment should you


You are creating an ASP.NET application by using the .NET Framework 3.5. You plan to develop a custom control library. Developers will use the control on Web pages in multiple applications. Each ASP.NET application will be configured by using different state management strategies. You need to ensure consistent state management for all instances of the control. Which state repository should you choose?


Which one of the following code snippets can be used to obtain the time of the request on the server?


Which of the following raises a bubbled event?


You are creating an ASP.NET application by using the .NET Framework 3.5. The application accesses a Windows Communication Foundation (WCF) service. You plan to debug the application. You need to ensure that you can step into the WCF service and debug the application. What should you do?


You are creating an ASP.NET application by using the .NET Framework 3.5. The application stores data in a database that might be implemented in Microsoft SQL Server, Microsoft Access, or a variety of third-party databases. You need to implement a data access strategy that meets the following requirements: The same data access code is used for all database platforms. The application defines the SQL syntax used. The application reduces the vulnerability to SQL injection attacks. What should you do?


You are creating an ASP.NET application by using the .NET Framework 3.5. You use LINQ to SQL to query a Microsoft SQL Server 2008 database. You need to create a LINQ query to retrieve information on order and order details. You need to ensure that the LINQ query executes the following SQL statement:

SELECT Order.OrderID ,Order.Description ,OrderDetails.UnitPrice FROM Order JOIN OrderDetails ON Order.OrderID = OrderDetails.OrderID Which LINQ query should you use?


You are creating an ASP.NET application by using the .NET Framework 3.5. The application accesses a Windows Communication Foundation (WCF) service. You plan to debug the application. You need to ensure that you can step into the WCF service and debug the application. What should you do















































Join the .NETCommunity
Description:

Test your ASP.net 3.5 skills.

Discussion

No Way

this is a dumb test I have been a dev for 10 years and I have never written code the way this thing asks question.

2389 days 11 hours 19 minutes ago

Trober

Question 2: is there a syntax error in this answer?
The SQL table is ORDER.
The answer says db.Orders, plural.

3421 days 9 hours 27 minutes ago

Papu Behera

what is the highest score for the test?

3476 days 14 hours 40 minutes ago

TechNet Consultancy
PMP and MCT Trainer with 13 year of experience
User
3 Members Recommend
57 Followers
Tests: 3

Your Facebook Friends on WizIQ

More Tests By Author

Project Management Professional (PMP)
10 Questions | 1855 Attempts

WCF
6 Questions | 3034 Attempts