PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which source should you recommend?

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 applications source for retrieving content.
Which source should you recommend?

What should you do?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to develop an application. A file named books.xml contains the following XML.

<bib>
<book title=”Programming in Unix” year=”1992″>
<author>Author1</author>
<author>Author2</author>
<author> Author 3 </author>
</book>
</bib>

The application must generate an XML result that contains an XML element named BookTitle for each book. The text content of the element must contain the title of the book.
You need to create a query that generates the new XML result. What should you do?

What should you do?

You create an ASP.NET page.
The page uses the jQuery $.ajax function to make calls back to the server in several places.
You add the following div element to the page.

<div id=”errorInfo”>
</div>

You need to implement a single error handler that will add error information from all page $.ajax calls to the div named errorInfo.
What should you do?

Which data access technology should you use?

You are developing a Windows application by using Microsoft .NET Framework 4, Microsoft Visual Studio 2010, and Microsoft SQL Server 2008. The application will store data in a SQL Server database instance. You plan to use the Code Generation technology to develop data entities. You need to ensure that the following requirements are met:
* When the application runs, a database must be created if it does not already exist.
* When the database schema changes, data entities must be added dynamically.
Which data access technology should you use?