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

certleader.com

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

A. From the web worker, use the onconnect event handler of the main page to capture events. 

B. From the main page, use the onmessage event handler of the web worker to capture events. 

C. From the web worker, use the onmessage event handler of the main page to capture events. 

D. From the main page, use the onconnect event handler of the web worker to capture events. 

Answer: BC 

Q2. You develop an interactive scalable vector graphic (SVG) application. 

You write the following code (Line numbers are included for reference only.): 

You need to increase the size of the circle by 50 percent. Which code segment should you insert at line 02? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer: B

Q3. You are developing an HTML5 page. The page includes the following code. 

The inner paragraph must be exactly 15 pixels from the top left corner of the outer paragraph. You set the left style for the inner paragraph to the appropriate value. 

You need to set the position property of the inner paragraph. 

Which value should you use? 

A. absolute 

B. static 

C. fixed 

D. relative 

Answer:

Q4. You are troubleshooting a web page that includes the following code. (Line numbers are included for reference only.) 

What is displayed in the alert from line 11? 

A. Div 

B. Function 

C. Button 

D. Document 

Answer:

Q5. 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:

Q6. You develop an application to host user-generated HTML and JavaScript content. 

A common error handler in your application must process all unhandled errors. 

You need to implement global error handling for the application. 

Which code segment should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer: A

Q7. You are developing a customer web form that includes the following HTML. 

<input id = "txtValue" /> 

A customer must enter a value in the text box prior to submitting the form. 

You need to add validation to the text box control. 

Which HTML should you use? 

A. <input id="txtValue" type="text" required="required"/> 

B. <input id="txtValue" type="text" pattern="[A-Za-z]{3}" /> 

C. <input id="txtValue" type="required" /> 

D. <input id="txtValue" type="required" autocomplete="on" /> 

Answer:

Q8. You are developing a customer web form that includes following HTML. 

<input id="txtValue"/> 

You need to develop the form so that customers can enter only a valid country code consisting of three English alphabet characters. 

Which code segment should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Q9. You are modifying a website. The body of the page will be divided into two sections: . A content section will contain blog posts and comments. . An area on the right-hand side will contain advertisements. The page is defined by the following HTML. 

The site must conform to HTML5 standards and must use HTML5 semantic tags. You need to ensure that the advertisements are on the rightmost section of the page. Which tag should you use? 

A. <aside> 

B. <div> 

C. <article> 

D. <footer> 

Answer:

Q10. You develop a webpage by using HTML5. 

The user interface of the webpage must show a gray-lined box that contains the label Enter your information:. Inside the box are two labels and two input boxes. The first input box must be labeled Name:. The second input box must be labeled Email:. 

Below the box is a Submit button. 

The user interface must look like the following; You need to create the user interface. Which markup should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer: B