Ensurepass

QUESTION 61

DRAG DROP

You are creating a web worker for an HTML5 application.

 

The following tasks must be performed from within the web worker:

 

clip_image002Register an event listener for the web worker

clip_image002[1]Start and stop the web worker

 

You need to define a function that performs the required tasks.

 

Which line of code should you use? (To answer, drag the appropriate line or lines of code to the correct location or locations. Each line of code 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.)

 

clip_image004

Correct Answer:

clip_image006

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

QUESTION 62

You are developing a web application that uses web workers to process images extracted from an HTML5 CANVAS object on a web page.

 

You need to pass messages between the web workers and the web page.

 

Which three types of objects should you use? (Each correct answer presents a complete solution. Choose three.)

 

A.

JSON

B.

Window

C.

Parent

D.

String

E.

JavaScript

F.

DOM

 

Correct Answer: ADE

 

 

QUESTION 63

DRAG DROP

You are developing an airline reservation website by using HTML5 and JavaScript. A page on the site allows users to enter departure and destination airport information and to search for tickets.

 

You have the following requirements:

 

clip_image002[2]Users must be able to save information in the application about their favorite destination airport.

clip_image002[3]The airport information must be displayed in the destination text box whenever the user returns to the page.

 

You need to develop the site to meet the requirements.

 

Which line or lines of code should you use? (To answer, drag the appropriate command or commands from the list of commands to the correct location or locations in the work area. Each line of code 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.)

 

clip_image008

 

Correct Answer:

clip_image010

 

 

 

 

 

 

 

 

 

 

 

QUESTION 64

You are creating a class named Sedan that must inherit from the Car class. The Sedan class must modify the inherited fourDoor () method. The Car class is defined as follows.

 

clip_image012

 

Future instances of Sedan must be created with the overridden method.

 

You need to write the code to implement the Sedan class.

 

Which two code segments should you use? (Each correct answer presents part of the solution. Choose two.)

 

clip_image014


 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: BC

QUESTION 65

You are modifying a blog site to improve search engine readability.

 

You need to group relevant page content together to maximize search engine readability.

 

Which tag should you use?

 

A.

<nav>

B.

<article>

C.

<span>

D.

<div>

 

Correct Answer: B

Explanation:

http://www.w3schools.com/tags/tag_article.asp

http://www.w3schools.com/html/html5_new_elements.asp

 

 

QUESTION 66

You are developing application web form by using HTML5 and JavaScript.

 

You need to prevent users from submitting form data more than once.

 

Which code segment should you use?

 

clip_image016

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: A

 

 

QUESTION 67

You are developing an HTML5 web application for a surveyor company that displays topographic images.

 

The application must:

 

clip_image002[4]Display the topographic images at different zoom levels without loss of detail

clip_image002[5]Print the topographic images without loss of detail

clip_image002[6]Work from only one source file for each topographic image

 

You need to ensure that the topographic images display according to the requirements.

 

Which HTML5 element should you use?

 

A.

SVG

B.

CANVAS

C.

SAMP

D.

AREA

 

Correct Answer: A

 

 

QUESTION 68

DRAG DROP

An HTML page has a CANVAS element.

 

You need to draw a red rectangle on the CANVAS element dynamically. The rectangle should resemble the following graphic.

 

clip_image018

 

How should you build the code segment? (To answer, drag the appropriate line of code to the correct location. Each line of code 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.)

 

clip_image020

 

Correct Answer:

clip_image022

 

 

QUESTION 69

You are modifying a website. The body of the page will be divided into two sections:

 

clip_image002[7]A content section will contain blog posts and comments.

clip_image002[8]An area on the right-hand side will contain advertisements.

 

The page is defined by the following HTML.

 

clip_image024

 

The site must conform to HTML5 standards and must use HTML5 semantic tags.

 

You need to ensure that the advertisements are on the rightmost section of the page.

 

Which tag should you use?

 

A.

<aside>

B.

<div>

C.

<article>

D.

<footer>

 

Correct Answer: A

 

 

QUESTION 70

You are developing an HTML5 page.

 

You need to add author and copyright information.

 

Which tag should you use?

 

A.

<aside>

B.

<header>

C.

<footer>

D.

<sectio
n>

 

Correct Answer: C

 

Free VCE & PDF File for Microsoft 70-480 Real Exam

Instant Access to Free VCE Files: MCSE|MCSA|MCITP…
Instant Access to Free PDF Files: MCSE|MCSA|MCITP…