PrepAway - Latest Free Exam Questions & Answers

Category: 70-523

Exam 70-523: Upgrade: Transition your MCPD .NET Framework 3.5 Web Developer Skills to MCPD .NET Framework 4 Web Developer

Which two actions should you perform ?

You are implementing an ASP.NET Web site. The site contains the following class.
public class Address
{
public int AddressType;
public string Line1;
public string Line2;
public string City;
public string ZipPostalCode;
}
The Web site interacts with an external data service that requires Address instances to be given in the following XML format.
<Address AddressType=”2″>
<Line1>250 Race Court</Line1>
<City>Chicago</City>
<PostalCode>60603</PostalCode>
</Address>
You need to ensure that Address instances that are serialized by the XmlSerializer class meet the XML format requirements of the external data service.
Which two actions should you perform (Each correct answer presents part of the solution. Choose two.)

What should you do?

You create an ASP.NET MVC 2 Web application that contains the following controller class.
public class ProductController : Controller
{
static List<Product> products = new List<Product>();
public ActionResult Index()
{
return View();
}
}
In the Views folder of your application, you add a view page named Index.aspx that includes the following @ Page directive.
<%@ Page Inherits=”System.Web.Mvc.ViewPage” %>
You test the application with a browser. You receive the following error message when the Index method is invoked: “The view ‘Index’ or its master was not found.”
You need to resolve the error so that the new view is displayed when the Index method is invoked.
What should you do?

Which two approaches should you recommend?

You are designing an ASP.NET Web application for online image editing. Users can upload images to the Web application and edit those images by using utilities provided by the application. Some utilities are processor intensive and should be offloaded to a Graphics Processing Unit (GPU). Other utilities require the use of proprietary algorithms that must be performed on the server.
You need to design a solution for minimizing bandwidth usage and Web server response times during image processing, while providing a responsive application.
Which two approaches should you recommend? (Each correct answer presents part of the solution. Choose two.)

Which two approaches should you recommend?

You are designing an ASP.NET Web application.
You have the following requirements:
Users must be allowed to save their work in progress on one computer and to continue the work on another computer.
Data that is submitted for processing must be valid, and invalid data must be rejected.
Primary key constraints within the database must be enabled at all times.
The application must store only data that is entered by the user.
You need to design data validation to support the requirements.
Which two approaches should you recommend? (Each correct answer presents part of the solution. Choose two.)

What should you do?

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 application uses DataContexts to query the database.
You create a function that meets the following requirements:
Updates the Customer table on the database when a customer is marked as deleted.
Updates the related entries in other tables (CustomerAddress, CustomerContacts) by marking them as deleted.
Prevents consumer code from setting the Deleted columns value directly.
You need to ensure that the function verifies that customers have no outstanding orders before they are marked as deleted. You also need to ensure that existing applications can use the updated function without requiring changes in the code.
What should you do?

What should you do?

You are implementing an ASP.NET application that includes a page named TestPage.aspx. TestPage.aspx uses a master page named TestMaster.master. You add the following code to the TestPage.aspx code-behind file to read a TestMaster.master public property named CityName.
protected void Page_Load(object sender, EventArgs e).
{ string s = Master.CityName;.
} You need to ensure that TestPage.aspx can access the CityName property. What should you do?

What should you do?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. The application uses the ADO.NET Entity Framework to model entities. The application allows users to make changes while disconnected from the data store. Changes are submitted to the data store by using the SubmitChanges method of the DataContext object. You receive an exception when you call the SubmitChanges method to submit entities that a user has changed in offline mode. You need to ensure that entities changed in offline mode can be successfully updated in the data store. What should you do?


Page 10 of 14« First...89101112...Last »