PrepAway - Latest Free Exam Questions & Answers

Category: 70-480 (v.1)

Exam 70-480: Programming in HTML5 with JavaScript and CSS3 (updated March 31, 2013)

what order should you specify the four anchor selectors?

You are developing a web page by using HTML5 and CSS3.
Styles must be defined for all hyperlinks on the page so that the applied style reflects the last useraction.
You need to style the four anchor elements in the document.
In what order should you specify the four anchor selectors?(To answer, move the appropriate anchor
selectors from the list of CSS codes to the answer area and arrange them in the correct order.)

How should you develop the form?

You are developing a form that captures a user’s email address by using HTML5 and jQuery.
The form must capture the email address and return it as a query string parameter. The query string parameter
must display the @ symbol used in the email address.
You need to implement this functionality.
How should you develop the form? (To answer, selectthe appropriate options from the drop-down lists in the
answer area.)

You need to develop the application to meet the requirements

You are developing a web application that retrievesdata from a web service.
The data being retrieved is a custom binary datatype named bint.
The data can also be represented in XML. Two existing methods named parseXml() and parseBint() are
defined on the page.
The application must:
Retrieve and parse data from the web service by using binary format if possible
Retrieve and parse the data from the web service byusing XML when binary format is not possible
You need to develop the application to meet the requirements.
What should you do? (To answer, drag the appropriate code segment to the correct location. Each code
segment may be used once, more than once, or not atall. You may need to drag the split bar between panes or
scroll to view content.)

Which three statements should you implement in sequence?

You are developing an application that reads information from a file.
The application must:
Execute a block of code if there is an error accessing the file
Execute a second block of code whether or not thereis an error accessing the file
You need to ensure that the error handling requirements are met.
Which three statements should you implement in sequence? (To answer, move the appropriate statements
from the list of actions to the answer area and arrange them in the correct order.)

How should you build the code segment?

You are creating a function by using JavaScript.
The function accepts an object as the parameter andreturns 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 isneither a number nor a string
You need to implement the function to meet the requirements.
How should you build the code segment? (To answer, drag the appropriate word to the correct location in the
code segment. Each word may be used once, more thanonce, or not at all.)
You may need to drag the split bar between panes orscroll to view content.)

Which code segment or segments should you use?

You are developing an application for an online retailer.
The company ships only to certain countries.
The application must:
Store a list of country codes in an array
Validate the country code of the shipping address against the countries array
Include a Boolean value in the array that indicateswhether or not you can ship to the country
Display a list of countries that can be shipped to if the user inputs a code for a country that the
retailer cannot ship to
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 from the list of code segments to the correct
location or locations 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 orscroll to view content.)

Which line of code should you use?

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 line of code should you use? (To answer, dragthe 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.)

Which line or lines of code should you use?

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:
Users must be able to save information in the application about their favorite destination airport.
The airport information must be displayed in the destination text box whenever the user returns to thepage.
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 locationor
locations in the work area. Each line of code may be used once, more than once, or not at all. You mayneed to
drag the split bar between panes or scroll to view content.)

How should you build the code segment?

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.

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


Page 7 of 7« First...34567