PrepAway - Latest Free Exam Questions & Answers

Category: 70-515 (v.1)

Exam 70-515: TS: Web Applications Development with Microsoft .NET Framework 4 (update August 24th, 2013)

Which code segment should you add at line 03?

You are developing an ASP.NET Web application.
The application includes a Icomparer<string> implementation named CaseInsensitiveComparer that compares
strings without case sensitivity
You add the following method.(Line numbers are included for reference only.)
01 public IEnumerable<string>SortWords(string[] words)
02 {
03
04 }
You need to sort the array by word length and then by alphabetic order, ignoring case.
Which code segment should you add at line 03?

Wich code segment should you use?

You are implementing an ASP.NET web application.Theapplication defines the following classes.
public class Person
{
public String Name{get; set;}
publicIList<Address> Addresses{get;set;}
}
public class Address
{
public String AddressType{get; set;}
public string AddressValue{get;set;}
}
The applicaction must generate XML from personList,wich is a collection of Person instances.The following
XML is an example of the schema than the generated XML must use.
<Persons>
<Person Name=”John Doe”>
<Address Email=”John.Doe@contoso.com”/>
<Address AlternativeEmail=”John.Doe@contoso.com”/>
<Address MSNInstanceMessenger=”John.Doe@contoso.com”/>
</Person>
…..
</Persons>
You need to generate the XML.
Wich code segment should you use?

<?xml version="1.0" standalone="yes"?

You are developing an ASP.NET web page.
The page must display data from XML file named Inventory.xml. Inventory.xml contains data in the following
format.
<?xml version=”1.0″ standalone=”yes”?>
<inventory>
<vehicle Make=”BMW” Model=”M3″ Year=”2005″ Price=”30000″ instock=”Yes”>
<Ratings>….</Ratings>
</Vechicle>
….
</Inventory>
You need to display Vehicle elements that have the inStock attribute set to YES.
Wich two controls should you add to the page? (Eachcontrol presents part of the solution.Choose two.)

You need to ensure that all uploaded files are saved to the server within one call to a single event handler

You are creating an ASP.NET web page that contains several FileUpload controls.
The page will be posted to the server after one or more image files are selected for upload.
You need to ensure that all uploaded files are saved to the server within one call to a single event handler.
What should you do?

You need to ensure that the route is registered correctly, Which code segment should you add?

You are developing an ASP.NET MVC 2 Web Applicationthat displays daily blog posts.
Visitors access a blog post page by using a Web address to pass in the year, month, and day -for example,
contoso.com/2010/07/20.
The application must register the appropriate routeto use the Display action of the blog controller.
Only page visits with a four digit year, two-digit month and two-digit dat can be passed to the action.
You need to ensure that the route is registered correctly,
Which code segment should you add?


Page 1 of 1912345...10...Last »