PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

You need to ensure that the page generates the appropriate database query

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 query string
value. You need to ensure that the page generates the appropriate database query. What should
you do?

Which ReliableSessionBindingElement property should you configure?

You are developing a Windows Communication Foundation (WCF) service. Client
applications require reliable sessions to access the service. Users report that they receive
ServerTooBusyException errors when their client application tries to establish a session.
You need to ensure that the service can handle a minimum of 30 client connection requests.
Which ReliableSessionBindingElement property should you configure?

Which of the following code segments will you use?

You work as an ASP.NET Web Application Developer for SomeCompany. The company uses Visual
Studio .NET 2010 as its application development platform. You create an ASP.NET MVC 2 Web
application using .NET Framework 4.0. You implement a single project area in the MVC 2 Web
application. In the Areas folder, you add a subfolder named MyTest. You add the following files to
the appropriate sub-folders:
MyController. cs
MyHome.aspx
You register a route of the area, setting the route name to MyTest_default and the area name to
test. You create a view named MyViews.aspx that is outside the test area. You need to add a link to
MyViews.aspx that points to MyHome.aspx. Which of the following code segments will you use?

Which code segment should you add at line 04?

You are developing a Windows Communication Foundation (WCF) service. You enable
message logging, trace listeners, activity propagation, and tracing on the trace sources. You
have the following code segment in the client application. (Line numbers are included for
reference only.) You encounter errors when your client application consumes the service.
You need to ensure that your client application can correlate tracing information with the
service. Which code segment should you add at line 04?

Which control markup will you use?

You work as an ASP.NET Web Application Developer for SomeCompany. The company uses Visual
Studio .NET 2010 as its application development platform. You are creating an ASP.NET Web
application using .NET Framework 4.0. The Web application will be accessed by international
audience. The Web application holds global and local resources for display elements that must be
translated into the language that is preferred by the user. You are required to ensure that a Label
control named CompanyLabel displays text in the user’s preferred language from the global resource
file. Which control markup will you use?

You need to test the application locally and then deploy it to numerous production servers

You work as an ASP.NET Web Application Developer for SomeCompany. The company uses Visual
Studio .NET 2010 as its application development platform. You are creating an ASP.NET Web
application using .NET Framework 4.0. The Web application makes use of SqlMembershipProvider.
You need to test the application locally and then deploy it to numerous production servers. You
must ensure that each and every deployed application accesses the identical production database in
a Microsoft SQL Server. What will you do? (Each correct answer represents a part of the solution.
Choose two.)

Which code segment should you use to set the service behavior?

You are developing a Windows Communication Foundation (WCF) service. One of the
service operations contains the following code. private static int counter = 0;
[OperationContract] public void IncrementCount() [ counter++; } You need to set a service
behavior that prevents two or more threads from incrementing the counter variable at the
same time. Which code segment should you use to set the service behavior?

What will you do to accomplish these tasks?

You work as an ASP.NET Web Application Developer for SomeCompany. The company uses Visual
Studio .NET 2010 as its application development platform. You are creating an ASP.NET Web

application using .NET Framework 4.0. The application will provide information about products
manufactured by the company. The company has a branch office in Saudi Arabia. The Sales
department employees of the branch office in Saudi Arabia will use the application. You are required
to accomplish the following tasks:
The application displays contents in the correct format for the employees of the Saudi Arabia office.
Each page in the application is displayed in the right-to-left format. What will you do to accomplish
these tasks? (Each correct answer represents a part of the solution. Choose two.)