1.
Your company salesman plans to visit five customers located in five different cities. You need to display the shortest route that covers all five customer locations on a Web-based map. What should you do?
2.
You add a new pushpin to a Virtual Earth 6.0 map. You are creating an algorithm to calculate the polygon representation of a pushpin cluster. You write a step to verify that the pushpin belongs to the cluster. You need
to identify whether to recalculate the polygon representation.
What should you do?
3.
A Virtual Earth 6.0 application loads locations from a local Microsoft SQL Server 2005 database. You update locations in the database manually. You plan to automate the manual process. You need to ensure that the
automation process updates the maximum number of locations in the least amount of time. What should you do?
4.
You are creating a Virtual Earth 6.0 application. The application will use data that is stored in the Microsoft
MapCruncher output format.
The MapCruncher output is defined in the following manner:
var tileSrc =
http://dev.live.com/virtualearth/sdk/layers/layer1
You need to ensure that the application displays the data as a new layer on the Virtual Earth map.
Which code segment should you use?
5.
You are managing Microsoft MapPoint Web Service (MWS) data in an application by using the Customer Services site. The application uses the DS_ONE data source stored on the Customer Services site. The
application displays several records in the wrong locations on the map. You need to display these records correctly on the map. What should you do?
6.
You are creating a Virtual Earth 6.0 application that retrieves locations from a Microsoft SQL Server 2005 database. A stored procedure will be used to retrieve only locations that lie within the currently displayed map
area. You need to define the boundary within which the locations displayed on the map must lie. How should you define the boundary?
7.
You are integrating third-party data into a Virtual Earth 6.0 application. The data that is retrieved from the third party is stored in an array named Results. The Results array is stored inside a Web handler. The data is stored
in the following format.
R esults[0]["name"] = "A. Datum Corporation";
Results[0]["address"] = " 123 Main St. , New York , NY "; Results[0]["latitude"] = "40.123";
Results[0]["longitude"] = "-70.456";
Results[0]["thumbnail"] = "http://www.adatum.com/st3465.jpg"; ...
Results[x]
The Web handler uses the GeoRSSFeed class to accept items of type GeoRSSItem. The class contains the
ToString() method that writes the GeoRSS feed to a string.
The Web handler GeoRSS integration is defined by the following code segment. (Line numbers are included for reference only.)
01 GeoRSSFeed feed = new GeoRSSFeed();
02 GeoRSSItem curItem;
03 for (int i = 0; i < Results.length; i++){
04 curItem = new GeoRSSItem();
05 ...
06 feed.Add(curItem);
07 }
08 // Write feed to HTTP Response
09 context.Write(feed.ToString());
The Web handler uses the GeoRSSItem class that contains the following code segment. (Line numbers are
included for reference only.)
10 public class GeoRSSItem {
11 public Dictionary < string, string > elements;
12 publ ic GeoRSSItem(){
13 elements = Dictionary < string, string > ();
14 }
15 public void Add(string pName, string pValue){
16 elements.Add(pName, pValue);
17 }
18 }
You need to encode the data inside the Results array into the GeoRSS format.
Which code segment should you insert at line 05?
8.
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?
9.
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?
10.
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?