Which function should you use?
Which lines of code should you use?
You are developing an HTML5 page that has an element with an ID of logo. The page includes the following
HTML.
<div>
Logo:<br>
<div id=”logo”>
</div>
</div>
You need tomove the logo element lower on the page by five pixels.
Which lines of code should you use? (Each correct answer presents part of the solution. Choose two.)
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 lines of code should you use?
You need to test the value of the following variable in JavaScript.
var length = “75”;
A block of code must execute if the length equals 75regardlessof the data type.
You need to use the statement that meets this requirement.
Which lines of code should 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?
What is displayed in the alert from line 11?
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.)
Which code segment should you use?
You are developing an HTML5 web application that displays customer mailing address information.
The application loads addresses from a web service by using AJAX.
The following code defines a Customer object and loads address data.
You need to implement the loadAddress function. Which code segment should you use?
Which line of code should you use?
You are developing an HTML5 web page.
The appearance of the text box must change when a user moves the focus to another element on the
page.
You need to develop the page to respond to user action.
Which line of code should you use?