PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

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?

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.
function Employee() {}
Employee.prototype.PayEmployee = function ( ){
alert(‘Hi there!’);
}
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.)

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 in the page.
With which container tags should you wrap the existing markup?

Which line of code should you use?

You are developing a web page by using HTML5 and C5S3. 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?

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

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?