PrepAway - Latest Free Exam Questions & Answers

Category: 70-544

Exam 70-544: TS: Bing Maps Platform, Application Development

Which code segment should you use?

You are creating a Web application by using the Virtual Earth 6.0 map control in Microsoft Visual Studio 2005. You program a Web page in the application by using client-side JavaScript code. When you load the Web page, it returns an error message. You are unable to identify the point of failure in the code. You need to identify the line at which the code fails by executing the client-side JavaScript code step by step. Which code segment should you use?

What should you do?

You are creating a Web application by using the Virtual Earth 6.0 map control in the Microsoft Visual Studio environment. A Web page in the application is programmed by using the client-side JavaScript code. You insert break points at appropriate locations within the code. When you debug the application, you find that you are able to step into the server-side code. However, you are unable to step into the client-side JavaScript code. You need to debug the client-side JavaScript code. What should you do?

Which code segment should you insert at line 03?

You deploy a Virtual Earth 6.0 application that uses Microsoft ASP.NET Asynchronous JavaScript and XML (AJAX) implementation to retrieve data.
The myAjaxCallback function evaluates any AJAX response. The function contains the following code segment. (Line numbers are included for reference only.)

01 function myAjaxCallback (){
02 if (xmlHttp.readyState == 4){
03 …
04 }
05 }

At the time the request was made, the server was overloaded. When the server processed the AJAX request, the server returned an error message.

You need to ensure that the application does not produce a fatal exception due to the error generated from the AJAX response.

Which code segment should you insert at line 03?

Which code segment should you use?

You are creating a North American reverse geocoding application by using the Microsoft MapPoint Web Service. The application must convert the latitude and longitude coordinates of a point on the map into a string that contains the city, province/state, and country. You need to obtain the string in the following format: “city, province/state, country”. Which code segment should you use?

Which code segment should you use?

You are writing a code segment for a Virtual Earth 6.0 application. The code segment returns data for multiple locations to a client-side JavaScript function that makes the initial request.

The returned data contains the following properties for each location:

ID
Latitude
Longitude
Address

You need to format all locations and their properties in JavaScript Object Notation (JSON) format.

Which code segment should you use?


Page 6 of 9« First...45678...Last »