PrepAway - Latest Free Exam Questions & Answers

Tag: Exam 70-480 (updated February 07th, 2016)

Exam 70-480: Programming in HTML5 with JavaScript and CSS3 (updated February 07th, 2016)

Which code segment should you use?

HOTSPOT
You are creating a web worker for an HTML5 application.
The following tasks must be performed from within the web worker:
Register an event listener for the web worker
Start and stop the web worker
You need to define a function that performs the required tasks.
Which code segment should you use? (To answer, select the appropriate option from the
drop-down list in the answer area.)

Which two code segments can you use?

You are creating a JavaScript function that displays the name of a web application.
You declare the following button element.
<input type=”button” id= “About” value=”About” />
When a user clicks the button, a JavaScript function named About must be called.
You need to create an event handler that calls the About function when the button is clicked.
Which two code segments can you use? (Each correct answer presents a complete solution.
Choose two.)

How should you build the code segment?

HOTSPOT
You are creating a function by using JavaScript. The function accepts an object as the
parameter and returns a string that identifies the data type of the object.
You have the following requirements:
The function must return “Number” if the object is a number.
The function must return “String” if the object is a string.
The function must return “Unknown” if the object is neither a number nor a string.
You need to implement the function to meet the requirements.

How should you build the code segment? (To answer, select the appropriate options from
the drop-down lists in the answer area.)

Which code segment should you use?

You are developing an application that uses a third-party JavaScript library named doWork().
The library occasionally throws an “object is null or undefined” error with an error code of
-2146823281.
The application must:
Extract and handle the exceptions thrown by doWork()
Continue normal program execution if other exceptions occur
You need to implement the requirements.
Which code segment should you use?

Which two actions will achieve this goal?

You are developing a web application that consumes services from a third-party application.
A web worker processes the third-party application requests in the background. A page in
the application instantiates the web worker process.
You need to establish two-way communications between the web worker process and the
page.
Which two actions will achieve this goal? (Each correct answer presents a complete solution.
Choose two.)

How should you write the code?

DRAG DROP
You are developing an online shopping application that accepts credit cards for payment.
If the credit card number is invalid, the application must:
Generate an error
Assign “200” to the error number
Assign “Invalid” to the error description
You need to write the code that meets the requirements.
How should you write the code? (To answer, drag the appropriate code segment or
segments to the correct location in the answer 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.)


Page 3 of 2112345...1020...Last »