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

certleader.com

Q1. You develop a webpage that allows a user to download a 3PEG image and convert it to a PNG file. 

You need to implement the code to download the contents of the JPEG image with no additional decoding. 

Which JavaScript function should you use? 

A. readAsBinaryString() 

B. readAsArrayBuffer() 

C. readAsDataURL() 

D. readAsText() 

Answer:

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

Q3. You are developing a web application that uses web workers to process images extracted from an HTML5 CANVAS object on a web page. 

You need to pass messages between the web workers and the web page. 

Which three types of objects should you use? (Each correct answer presents a complete solution. Choose three.) 

A. JSON 

B. Window 

C. Parent 

D. String 

E. JavaScript 

F. DOM 

Answer: ADE 

Q4. You develop an HTML5 application. The application uses an image that is returned from an HTTP POST request. 

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

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer: B

Q5. You are styling a box object on a page by using CSS3. You need to set the transparency of the object to 50%. Which two CSS3 styles will achieve the goal? (Each correct answer presents a complete solution. Choose two.) 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer: BC 

Q6. You are creating a custom function. You pass an object named testObj to the function as a parameter. You do not use inheritance through the functions. 

The function must establish whether testObj inherits from another object named parentObj. 

You need to ensure that the function performs as required. 

Which method or operator should you add to the function? 

A. parentObj.instanceof(testObj) 

B. testObj.isPrototypeOf(parentObj) 

C. testObj.instanceof(parentObj) 

D. parentObj.isPrototypeOf(testObj) 

Answer: B

Q7. You are developing a web page that performs CPU-intensive calculations. A web worker processes these calculations on a separate background thread. The process is instantiated from the web page. 

You need to stop the web worker process after the calculations are completed. 

Which two actions can you perform to achieve this goal? (Each correct answer presents a complete solution. Choose two.) 

A. From the web page, call the close() method. 

B. From the web worker process, call the terminate() method. 

C. From the web page, call the terminate() method. 

D. From the web worker process, call the close() method. 

Answer: CD

Q8. 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? 

A. <input type="text" onblur="resetStyle(this);" /> 

B. <input type="text" onfocus="resetStyle(this);" /> 

C. <input type="text" onreset="resetStyle(this);" /> 

D. <input type="text" onselect="resetStyle(this);" /> 

Answer:

Q9. You develop a webpage with a standard input control by using HTML5. 

The input control must display the text Enter your given name, as shown below: 

When a user selects the input control, the text must disappear. 

You need to create the input control. 

Which input control should you use? 

A. <input name="GivenName" value=" Enter your given name" /> 

B. <input name ="GivenName" default=" Enter your given name" /> 

C. <input name="GivenName" text=" Enter your given name" /> 

D. <input name="GivenName" placeholder=" Enter your given name" /> 

Answer: D

Q10. You are modifying a blog site to improve search engine readability. 

You need to group relevant page content together to maximize search engine readability. 

Which tag should you use? 

A. <article> 

B. <span> 

C. <tbody> 

D. <cd> 

Answer: