70-480 Programming in HTML5 with JavaScript and CSS3

Loading demo links...

Showing 1–3 of 15 questions

Question 1

DRAG DROP

You are developing an application for a retail store. The application will be used on mobile devices to provide real-time directions to the store.

You have the following requirements:

The application must find out a user's location.

As the user moves, the application must update the screen with the new location. As the user moves, the application must display the user's speed.

You need to develop the application to meet the requirements.

Which code segment or segments should you use? (To answer, drag the appropriate code segment or segments to the correct location in the work area. Each code segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.) Select and Place:

Answer is in the explanation below.

Question 2

DRAG DROP

You are implementing a web worker by using JavaScript and HTML5. The web worker processes a long-running loop and returns the result to a webpage.

The web worker is defined on the webpage as follows:

You have the following requirements:

Evaluate the message value in the web worker.

Process the loop based on the iterations value that is passed from the webpage. Return a value back to the webpage from the web worker.

You need to implement the web worker.

How should you complete the relevant code? To answer, drag the appropriate code segments to the correct targets. Each code segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.

NOTE: Each correct selection is worth one point.

Select and Place:

Answer is in the explanation below.