70-480 Programming in HTML5 with JavaScript and CSS3

Loading demo links...

Showing 13–15 of 15 questions

Question 13

You are developing an HTML5 web application. The application loads data from a web service by using AJAX. The application displays the data by calling the displayData function. The data is loaded by using the following code.

You need to ensure that the data is displayed when it is successfully retrieved from the web service.

Which code segment should you use?

Select an option, then click Submit answer.

  • Option A

  • Option B

  • Option C

  • Option D

Question 14

You are implementing an application by using HTML5 and JavaScript. A web page contains the following HTML table.

The application must:

Identify all rows in the table body that have a class attribute of selected Exclude the last selected row in the table

You need to implement the web page according to the requirements.

Which CSS selector should you use?

Select an option, then click Submit answer.

  • tr:not(tr:last-child).selected < #dataTable

  • #dataTable > tr.selected:not(tr:last-child)

  • #dataTable tbody tr.selected:not(tr:last-child)

  • #dataTable tr.selected:not(tr:last-child)

Question 15

You are developing an HTML5 page named main.html. The JavaScript code for the main page is located in a file named myApp.js.

You need to create a web worker and instantiate it from main.html.

Where should you place the web worker code?

Select an option, then click Submit answer.

  • In the myApp.js file

  • In the main.html file

  • In a separate .js (JavaScript) file

  • In a separate executable file