Microsoft TS: Ms Virtual Earth 6.0, Application Development - 70-544 Exam Practice Test
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?
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?
Correct Answer: A
You are creating a Web application by using the Virtual Earth 6.0 map control. A Web page of the application loads two map controls named Map1 and Map2. Map1 displays a navigable, primary map. Map2 is the secondary instance of Map1 and displays an overview of the primary map. You need to ensure that when the user navigates the primary map, the overview is automatically updated. Which code segment should you use?
Correct Answer: B
A construction company wants to display plots on a Virtual Earth 6.0 map. The photographs of the plots are stored as JPEG files. You instantiate a pushpin shape of the type VEShapeType.Pushpin. You need to set a custom icon to the pushpin. What should you do?
Correct Answer: D
You are creating an application that will display a Virtual Earth 6.0 map inside a pop-up window that will be viewed by using Microsoft Internet Explorer.
You write the following code segment.
0 1 var map = null;
0 2 function GetMap(){
0 3 map = new VEMap('Map');
0 4 map.LoadMap();
0 5 ...
0 6 }
You need to ensure that the following requirements are met:
The height of the map is half the height of the pop-up window.
The width of the map is one-third the width of the pop-up window.
Which code segment should you insert at line 05?
You write the following code segment.
0 1 var map = null;
0 2 function GetMap(){
0 3 map = new VEMap('Map');
0 4 map.LoadMap();
0 5 ...
0 6 }
You need to ensure that the following requirements are met:
The height of the map is half the height of the pop-up window.
The width of the map is one-third the width of the pop-up window.
Which code segment should you insert at line 05?
Correct Answer: B
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?
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?
Correct Answer: C
Your companys Web site has a Virtual Earth 6.0 map. You create custom buttons. You need to ensure that Web site users are able to pan the map to the north-east direction.
What should you do?
What should you do?
Correct Answer: D
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: D
You create a Microsoft MapPoint Web Service application that accepts routes from users.
You need to find points of interest that are within one mile of a route or within three miles of the endpoints of the route. What are two possible ways to achieve the goal? (Each correct answer presents a complete solution. Choose two.)
You need to find points of interest that are within one mile of a route or within three miles of the endpoints of the route. What are two possible ways to achieve the goal? (Each correct answer presents a complete solution. Choose two.)
Correct Answer: A,C
You are creating a Virtual Earth 6.0 map. You use a page template that has a transparent header. You write the following HTML fragment to define the template.
0 1 <head>
0 2 <script type="text/javascript">
0 3 var map = null;
0 4 function GetMap(){
0 5 FormatMap();
0 6 map = new VEMap('Map');
0 7 map.LoadMap();
0 8 }
0 9 function FormatMap(){
1 0 var mapEl = document.getElementById('Map');
1 1 var headEl = document.getElementById('Header');
1 2 ...
1 3 }
1 4 </head>
1 5 <body onload="GetMap();">
1 6 <div id='Header' style="position: relative; left: 5px; top:
5px; width:400px; height:100px; border: 2px solid black;">
1 7 Header
1 8 </div>
1 9 <div id='Map'></div>
2 0 </body>
You need to position the map so that the header is overlaid on the map and centered at the top.
Which code segment should you insert at line 12?
0 1 <head>
0 2 <script type="text/javascript">
0 3 var map = null;
0 4 function GetMap(){
0 5 FormatMap();
0 6 map = new VEMap('Map');
0 7 map.LoadMap();
0 8 }
0 9 function FormatMap(){
1 0 var mapEl = document.getElementById('Map');
1 1 var headEl = document.getElementById('Header');
1 2 ...
1 3 }
1 4 </head>
1 5 <body onload="GetMap();">
1 6 <div id='Header' style="position: relative; left: 5px; top:
5px; width:400px; height:100px; border: 2px solid black;">
1 7 Header
1 8 </div>
1 9 <div id='Map'></div>
2 0 </body>
You need to position the map so that the header is overlaid on the map and centered at the top.
Which code segment should you insert at line 12?
Correct Answer: A
The locations of the vehicles of your company are available as coordinates. You need to display only the current location of a vehicle on a Virtual Earth 6.0 base map layer. What are two possible code segments you can use to achieve this goal? (Each correct answer presents a complete solution. Choose two.)
Correct Answer: D,E