PrepAway - Latest Free Exam Questions & Answers

Category: 70-480 (v.3)

Exam 70-480: Programming in HTML5 with JavaScript and CSS3 (updated December 1st, 2014)

Which line of code should you add at line 03?

You are creating a web page that contains a canvas with text.
The page contains the following JavaScript code. (Line numbers are included for reference only.)

The text on the canvas must rotate 90 degrees when a user clicks a button on the page.
You need to ensure that the text rotates when the user clicks the button.
Which line of code should you add at line 03?

Which two code segments should you add to the webpage?

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

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. Choose two.)

How should you complete the relevant code?

DRAG DROP
You are creating a function by using JavaScript.
You have the following requirements:
The function must display loan amounts to the user within the following HTML element:
<div id=”display”></div>
The loan amount of 2100 must display in the HTML element.
All declared variables and functions must be scoped to the myApp variable.
You need to implement the function.
How should you complete the relevant code? (To answer, drag the appropriate code segments to
the correct location or locations in the answer area. Use only code segments that apply.)

Which three actions should you perform in sequence?

DRAG DROP
You create an HTML5 application that includes JavaScript. The application performs several AJAX
requests. One AJAX request retrieves order information from a web service and then sends the
information back to a webpage within the application.
You must create a custom event. You have the following requirements:
The webpage must contain an HTML element named ordersListing that will receive the custom event
notification.
The event name must be ordersReceived.
The event must pass a custom value named orderCount.
The event must run a JavaScript method named showOrdersReceivedCount after the orders Listing
HTML element receives the event.
Do not allow other DOM elements to receive the event.
Allow the event to be cancelled.
Send the event into the event system.
You need to implement the custom event to notify specific DOM elements of the AJAX response.
Which three actions should you perform in sequence? (Develop the solution by selecting the
required code segments and arranging them in the correct order.)

How should you complete the relevant code?

DRAG DROP
You are developing an application by using JavaScript.
You must write a function that returns the sum of the variables named v1, v2, v3, v4.
You need to complete the sum function.
How should you complete the relevant code? (To answer, drag the appropriate code segment or
segments to the correct location or locations in the answer area. Use only code segments that apply.)


Page 14 of 20« First...1213141516...20...Last »