Microsoft TS: Ms Virtual Earth 6.0, Application Development Sample Questions:
1. You are creating a Virtual Earth 6.0 map. The map displays a pop-up box. You call the
ClearInfoBoxStyles method. You need to set the fill color of the pop-up box to yellow.
Which Cascading Style Sheet (CSS) class should you use?
A) .customInfoBox-body { background-color: Yellow; }
B) .customInfoBox-body { color: Yellow; }
C) .ero .ero-previewArea { color: Yellow; }
D) .ero .ero-previewArea { background-color: Yellow; }
2. You upload territory information to a data source on the Microsoft MapPoint Web Service.
You receive the coordinates of a moving vehicle every 30 seconds. You need to identify the territory where the vehicle is currently located. Which two actions should you perform?
(Each correct answer presents part of the solution. Choose two.)
A) Call the FindPolygon method.
B) Call the FindByProperty method.
C) Call the FindById method.
D) Create a FindPolygonSpecification object by using the LatLongSpatialFilter class.
E) Create a FindPolygonSpecification object by using the LatLongRectangleSpatialFilter class.
3. 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?
A) In Microsoft Internet Explorer, select the Enable Display a notification about every script error option in the Internet Options dialog box.
B) In Microsoft Internet Explorer, clear the Disable Script Debugging (Internet Explorer) option in the Internet Options dialog box.
C) In Visual Studio, select the Attach to Process option from the Debug menu. Then attach the debugger to the Microsoft Internet Explorer process.
D) In the client-side JavaScript code, insert the Debugger command before each break point.
4. 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?
A) mapEl.style.position = headEl.style.position; mapEl.style.top = headEl.style.top; mapEl.style.left = headEl.style.left; mapEl.style.width = headEl.style.width; mapEl.style.height = headEl.style.height; mapEl.style.zIndex = headEl.style.zIndex;
B) mapEl.style.position = headEl.style.position; mapEl.style.top = headEl.style.top; mapEl.style.left = headEl.style.left; mapEl.style.width = headEl.style.width; mapEl.style.height = headEl.style.height; mapEl.style.zIndex = -1;
C) mapEl.style.position = "absolute"; mapEl.style.top = "5px"; mapEl.style.left = "5px"; mapEl.style.width = "400px"; mapEl.style.height = "400px"; mapEl.style.zIndex = -1;
D) mapEl.style.position = "absolute"; mapEl.style.top = "5px"; mapEl.style.left = "5px"; mapEl.style.width = headEl.style.width; mapEl.style.height = headEl.style.height; mapEl.style.zIndex = 0;
5. You are creating a custom tile set by using Microsoft MapCruncher. The tile set must overlay a weather map image in a Virtual Earth 6.0 application by using MapCruncher.
You need to perform two tasks before using MapCruncher to create the custom tile set.
Which two tasks should you perform? (Each correct answer presents part of the solution.
Choose two.)
A) Split the weather map image into tiles.
B) Obtain the latitude and longitude coordinates for the corners of the weather map image.
C) Apply the proper alpha filter to the weather map image to display any transparent portions on the Virtual Earth map.
D) Obtain low resolution weather map images for low zoom levels and high resolution weather map images for high zoom levels.
Solutions:
| Question # 1 Answer: A | Question # 2 Answer: A,D | Question # 3 Answer: B | Question # 4 Answer: C | Question # 5 Answer: B,C |

We're so confident of our products that we provide no hassle product exchange.


By Nicole


