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)

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 using binary format if possible
Retrieve and parse the data from the web service using XML when binary format is not possible
You need to develop the application to meet the requirements.
What should you do? (To answer, select the appropriate options from the drop-down lists in the answer area.)

Which 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 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
the page.
You need to develop the site to meet the requirements.
Which lines of code should you use? (To answer, select the appropriate options from the drop-down lists in the
answer area.)

Which code segment 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 code segment should you use? (To answer, select the appropriate option from the drop-down list in the
answer area.)

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, select the appropriate options from the drop-down lists in
the answer area.)

which order should you use the five style sheets?

You are creating an application by using HTML5 and CSS3. The styles for the pages are derived from five style
sheets. The styles are not being applied correctly to the pages in the application.
You need to apply the styles from highest priority to lowest priority.
In which order should you use the five style sheets? (To answer, move the style sheet types from the list of style
sheet types to the answer area and arrange them in the correct order.)

How should you build the code?

You are developing a web page that will be accessedfrom various types of devices.
You have the following requirements:
The appropriate display resolution must be selecteddynamically based on the device connecting to
the page.
Mobile devices with a maximum width of 480 pixels must be able to use the page.
You need to ensure that the page displays correctlyon any device.
How should you build the code? (To answer, select the appropriate options from the drop-down lists in the
answer area.)

Which jQuery code segment or segments should you use?

You are developing a website that has many web pages with hyperlinks to other sites.
You need to ensure that if a hyperlink contains an image, the linked web page opens in a new window.
Which jQuery code segment or segments should you use?
(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.)

How should you build the code?

You are developing a web page that will be accessedfrom various types of devices.
You have the following requirements:
The appropriate display resolution must be selecteddynamically based on the device that is connectingto
the page.
Mobile devices with a maximum width of 480 pixels must be able to use the page.
You need to ensure that the page displays correctlyon any device.
How should you build the code? (To answer, drag theappropriate media statement to the correct location. Each
media statement 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 6 of 7« First...34567