70-480 Programming in HTML5 with JavaScript and CSS3

Loading demo links...

Showing 4–6 of 15 questions

Question 4

HOTSPOT

You develop an interactive scalable vector graphics (SVG) application. You write the following HTML markup that makes a rectangle rotate:

You need to control the speed of the rotating rectangle.

How should you complete the relevant code? (To answer, select the appropriate option from each drop-down list in the answer area.) Hot Area:

Answer is in the explanation below.

Question 5

You develop an HTML5 webpage that contains the following HTML markup:

The page includes the following JavaScript code:

var selectedValues = ' ';

You have the following requirements:

Retrieve the content for any OPTION elements when the value of the selected attribute equals selected. Add the content to a comma separated string.

You need to retrieve the required data.

Which two code segments should you add to the webpage? Each correct answer presents a complete solution.

NOTE: Each correct selection is worth one point.

Select all that apply, then click Submit answer.

  • Option A

  • Option B

  • Option C

  • Option D

  • Option E

Question 6

You are creating a JavaScript function that displays the name of a web application.

You declare the following button element.

When a user clicks the button, a JavaScript function named Contact must be called.

You need to create an event handler that calls the Contact function when the button is clicked.

Which two code segments can you use? (Each correct answer presents a complete solution. Choose two.)

Select all that apply, then click Submit answer.

  • Option A

  • Option B

  • Option C

  • Option D