PrepAway - Latest Free Exam Questions & Answers

Category: 70-480

Exam 70-480: Programming in HTML5 with JavaScript and CSS3

Which code segment should you use to replace the Loader function?

You are developing an HTML5 web application that displays the current temperature whenever a button is clicked.
The following code provides this functionality.

When the temperature is loaded, the status propertyon the loader instance does not change.
You need to ensure that the status property on the loader instance is updated when the temperature is loaded.
Which code segment should you use to replace the Loader function?

Which code segments should you use? (Each correct answer presents part of the solution

You are creating a class named Consultant that mustinherit from the Employee class. The Consultant class must modify the inherited PayEmployee method.
The Employee class is defined as follows.
<code>
function Employee() {}
Employee.prototype.PayEmployee = function ( ){
alert(‘Hi there!’);
}
</code>
Future instances of Consultant must be created withthe overridden method.
You need to write the code to implement the Consultant class.
Which code segments should you use? (Each correct answer presents part of the solution. Choose two.)

With which container tags should you wrap the existing markup?

You are modifying an existing web page. The page isbeing optimized for accessibility. The current page contains the following HTML.

Standards-compliant screen readers must be able to identify the links contained within the navigation structure automatically.
You need to create the navigation link structure inthe page.
With which container tags should you wrap the existing markup?

Which lines of code should you use?

HOTSPOT
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 line of code should you use?

You are developing a web page by using HTML5 and CSS3. The page includes a <div> tag with the ID set to validate.
When the page is rendered, the contents of the <div> tag appear on a line separate from the content above and below it.
The rendered page resembles the following graphic.

The page must be rendered so that the <div> tag is not forced to be separate from the other content. The following graphic shows the correctly rendered output.

You need to ensure that the page is rendered to meet the requirement.
Which line of code should you use?


Page 2 of 712345...Last »