Q1. You develop an HTML5 webpage. You have the following HTML markup: (Line numbers are for reference only.)
You need to determine how the webpage will appear when the CSS styles are applied.
Select two.
A. The first row of the table will have a red background.
B. The second row of the table will have a red background.
C. The second cell in the first row of the table will have a blue background.
D. The second cell in the third row of the table will have a blue background.
E. The second cell in the third row of the table will have not have blue background.
Answer: AE
Q2. An HTML page contains no embedded JavaScript or CSS code. The body of the page contains only the following line of code.
<p id="test">test</p> A CSS style sheet must be applied dynamically. The style must visibly change the appearance of the paragraph on the page.
You need to apply a style the paragraph.
Which line of code should you use?
A. document.getElementById("test").style.border = "0";
B. document.getElementById("test").style.position = "static";
C. document.getElementById ("test").style.padding = "15px";
D. document.getElementById("test").style.top = "5px";
Answer: A
Q3. You are developing application web form by using HTML5 and JavaScript. You need to prevent users from submitting form data more than once. Which code segment should you use?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: A
Q4. 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.
A. Option A
B. Option B
C. Option C
D. Option D
Answer: B
Q5. You develop a webpage.
The webpage must display a grid that contains one row and five columns. Columns one, three, and five are the same width. Columns two and four are the same width, but much wider than columns one, three, and five. The grid resembles the following image:
The grid must meet the following requirements:
Each row must be tall enough to ensure that images are not cut off.
Each row must contain five columns.
The width of the columns must not change when the screen is resized or rotated.
You need to define the style for the grid. Which CSS3 style should you use?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: C
Q6. 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.
A. Option A
B. Option B
C. Option C
D. Option D
Answer: C
Q7. You are developing a web application that can function when users are not connected to the Internet.
You need to check the Internet connectivity status of a user's browser.
Which method should you use?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: A
Q8. You implement an application by using HTML5 and JavaScript. You create a webpage that contains the following HTML:
The application must place a border on only the first UL element that is contained in the DIV element.
You need to update the webpage.
What should you do?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: D
Q9. You are developing a customer web form that includes following HTML.
<input id= "textAccountType"/>
You need to develop the form so that customers can enter only a valid account type consisting of two English alphabet characters.
Which code segment should you use?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: B
Q10. You are developing an HTML5 web application and are styling text.
You need to use the text-transform CSS property.
Which value is valid for the text-transform property?
A. Capitalize
B. Red
C. 20px
D. Italic
Answer: A