Microsoft TS: Ms Virtual Earth 6.0, Application Development (70-544) Free Practice Test
Question 1
Your company displays a map of apartments for rent in a neighborhood by using Virtual
Earth 6.0. You need to add an overview map. Which method should you call?
Earth 6.0. You need to add an overview map. Which method should you call?
Correct Answer: D
Question 2
You are creating a browser-based Web application by using Virtual Earth 6.0 map control.
A Web page of the application has a map and a list of locations.
When a user selects a location from the list, the application must meet the following requirements:
A default view of the selected location is loaded.
The selected location is centered.
The selected location appears in the three-dimensional mode, at an oblique pitch, and heads due north.
You need to program Virtual Earth map control to ensure that the requirements are met.
Which code segment should you use?
A Web page of the application has a map and a list of locations.
When a user selects a location from the list, the application must meet the following requirements:
A default view of the selected location is loaded.
The selected location is centered.
The selected location appears in the three-dimensional mode, at an oblique pitch, and heads due north.
You need to program Virtual Earth map control to ensure that the requirements are met.
Which code segment should you use?
Correct Answer: B
Question 3
You need to add a default pushpin as a shape to the base map layer at a specific latitude and longitude. Which code segment should you use?
Correct Answer: B
Question 4
You create a Web page that contains a Virtual Earth 6.0 map. You want to track how your users are interacting with the map.
You need to track the following usage data.
number of Virtual Earth transactions
zoom usage
map styles that are being used
Which two methods or events should you use? (Each correct answer presents part of the solution. Choose two.)
You need to track the following usage data.
number of Virtual Earth transactions
zoom usage
map styles that are being used
Which two methods or events should you use? (Each correct answer presents part of the solution. Choose two.)
Correct Answer: A,B
Question 5
Your company wants to display customer locations as pushpins on a Virtual Earth 6.0 map.
You need to ensure that the pushpins are loaded after the Virtual Earth map is loaded.
Which code segment should you use?
You need to ensure that the pushpins are loaded after the Virtual Earth map is loaded.
Which code segment should you use?
Correct Answer: B
Question 6
Your Microsoft MapPoint Web Service (MWS) User Id is 124566, and your MWS password is P@ssw0rd. You need to use MWS to create an application. Which code segment should you use?
Correct Answer: B
Question 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.)
0 1 GeoRSSFeed feed = new GeoRSSFeed();
0 2 GeoRSSItem curItem;
0 3 for (int i = 0; i < Results.length; i++){
0 4 curItem = new GeoRSSItem();
0 5 ...
0 6 feed.Add(curItem);
0 7 }
0 8 // Write feed to HTTP Response
0 9 context.Write(feed.ToString());
The Web handler uses the GeoRSSItem class that contains the following code segment.
(Line numbers are included for reference only.)
1 0 public class GeoRSSItem {
1 1 public Dictionary < string, string > elements;
1 2 publ ic GeoRSSItem(){
1 3 elements = Dictionary < string, string > ();
1 4 }
1 5 public void Add(string pName, string pValue){
1 6 elements.Add(pName, pValue);
1 7 }
1 8 }
You need to encode the data inside the Results array into the GeoRSS format.
Which code segment should you insert at line 05?
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.)
0 1 GeoRSSFeed feed = new GeoRSSFeed();
0 2 GeoRSSItem curItem;
0 3 for (int i = 0; i < Results.length; i++){
0 4 curItem = new GeoRSSItem();
0 5 ...
0 6 feed.Add(curItem);
0 7 }
0 8 // Write feed to HTTP Response
0 9 context.Write(feed.ToString());
The Web handler uses the GeoRSSItem class that contains the following code segment.
(Line numbers are included for reference only.)
1 0 public class GeoRSSItem {
1 1 public Dictionary < string, string > elements;
1 2 publ ic GeoRSSItem(){
1 3 elements = Dictionary < string, string > ();
1 4 }
1 5 public void Add(string pName, string pValue){
1 6 elements.Add(pName, pValue);
1 7 }
1 8 }
You need to encode the data inside the Results array into the GeoRSS format.
Which code segment should you insert at line 05?
Correct Answer: D