Microsoft UPG:Transition MCPD.NET Frmwrk 3.5 Web Dev to 4 Web Dev - 070-523 Exam Practice Test

You are implementing an ASP.NET Web page.
You need to add a text box that allows only values between 1 and 10, inclusive, to be submitted. Which two
code segments should you use? (Each correct answer presents part of the solution. Choose two.)
Correct Answer: A,B Vote an answer
Explanation: Only visible for PassTestking members. You can sign-up / login (it's free).
You are designing an ASP.NET Web application by using Microsoft Visual Studio 2010. The Web
application uses dynamic HTML (DHTML).
You need to ensure that the application functions properly on multiple browser platforms without requiring
the installation of a client-side component.
Which two approaches could you recommend? (Each correct answer presents a complete solution.
Choose two.)
Correct Answer: A,B Vote an answer
Explanation: Only visible for PassTestking members. You can sign-up / login (it's free).
You need to design a deployment solution for the rewritten Web application. Which approach should you recommend?
Correct Answer: D Vote an answer
You are creating a Windows Communication Foundation (WCF) service that accepts messages from
clients when they are started.
The message is defined as follows.
[MessageContract] public class Agent {
public string CodeName { get; set; }
http://www.test4pass.com Leading the way in IT Certification Exams
public string SecretHandshake { get; set; }
}
You have the following requirements:
"The CodeName property must be sent in clear text.
The service must be able to verify that the property value was not changed after being sent by the client.
"The SecretHandshake property must not be sent in clear text and must be readable by the service. What should you do?
Correct Answer: B Vote an answer
A Windows Communication Foundation (WCF) service has a callback contract.
You are developing a client application that will call this service.
You must ensure that the client application can interact with the WCF service.
What should you do?
Correct Answer: D Vote an answer
You are designing a data access service backed by Microsoft SQL Server. Other developers will use your
service as a third-party service.
You have the following requirements:
*To reduce maintenance cost, you must write the minimal amount of code required for fulfilling the goals.
*The service must function with Microsoft and non-Microsoft technologies.
*The service must implement the WS-Security standards.
You need to design the service to meet the requirements.
Which approach should you recommend?
Correct Answer: B Vote an answer
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 database table named ProductCatalog as shown in the exhibit. (Click the Exhibit
button.)
You add the following code segment to query the first row of the ProductCatalog table. (Line numbers are
included for reference only.)
01 using (var cnx = new SqlConnection(connString))
02 {
03 var command = cnx.CreateCommand();
04 command.CommandType = CommandType.Text;
05 command.CommandText ="SELECT TOP 1 * FROM dbo.ProductCatalog";
06 cnx.Open();
07 var reader = command.ExecuteReader();
08 if (reader.Read()) {
09 var id = reader.GetInt32(0);
10
11 reader.Close();
12 }
13 }
You need to read the values for the Weight, Price, and Status columns.
Which code segment should you insert at line 10?
Exhibit:
Correct Answer: A Vote an answer
You need to design a solution for programmatically adding reusable user-interface code to views and allowing the user-interface code to be rendered from the server side. Which approach should you recommend
Correct Answer: C Vote an answer
You are designing an ASP.NET Web application for content management.
You have the following requirements:
*Support multiple languages.
*Support dynamic changes to site content.
*Provide the ability to add content to the site without making changes to files within the application directory.
You need to recommend the application's source for retrieving content.
Which source should you recommend?
Correct Answer: C Vote an answer