PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which two techniques should you use?

You are developing an HTML5 web application that provides a discussion forum for users. When a
user registers to access the application, the user enters an email address.
Users can enter data that can result in cross-site scripting (XSS) attacks.
You need to ensure that email input is as secure as possible.
Which two techniques should you use? (Each correct answer presents a complete solution. Choose
two.)

You need to return an anonymous object that is serialized to JSON

DRAG DROP
You are developing an ASP.NET Web API action method.
The action method must return the following JSON in the message body.
{ ” Name “:” Fabrikam”, “Vendor Id”: 9823, “Items”: [“Apples”, “Oranges”] }
You need to return an anonymous object that is serialized to JSON.
What should you do? (To answer, drag the appropriate code segments to the correct
location or locations in the answer area. Each code segment may be used once, more than
once, or not at all. You may need to drag the split bar between panes or scroll to view content.

Which script segment should you use?

You are developing an ASP.NET MVC web application that contains the following HTML.
<table id= “customer” ></table>
You also have an ASP.NET Web API application that contains a call for retrieving
customers. You must send and retrieve the data in the most compact format possible. You
need to update the HTML for the customers table to contain data from the Web API
application. Which script segment should you use?

You need to configure the Web API

DRAG DROP
You are developing an ASP.NET Web API application that will be consumed by a web
browser via a composite application that is served from another web domain. You need to
configure the Web API. What should you do? (To answer, drag the appropriate XML
elements to the correct location or locations in the answer area. Each XML element may be
used once, more than once, or not at all. You may need to drag the split bar between panes
or scroll to view content.)

You need to complete the code to meet the requirements

DRAG DROP
You are developing an ASP.NET MVC Web API image management application.
The application must meet the following requirements:
• It must send or receive image data without the use of a buffer.
• It must allow up to 4 MB of image data to be received.
• It must allow up to 3 MB of image data to be sent.
You need to complete the code to meet the requirements. What should you do? (To answer,
drag the appropriate code segments to the correct location or locations in the answer area.
Each code segment may be used once, more than once, or not at all. You may need to drag
the split bar between panes or scroll to view content.)