Q1. Which HTML5 tag defines superscript text?
A. < small >
B. <script>
C. <sup>
D. <sub>
Answer: C
Q2. In CSS, the flow-into property deposits:
A. the flow into the content.
B. the regions into a flow.
C. the flow into the regions.
D. content into the flow.
Answer: D
Q3. Web Workers define an API for:
A. Publishing frequently updated works for syndication.
B. Running scripts in the background,
C. Bi-directional, full-duplex communications over a single TCP socket.
D. Distributing load across multiple web servers.
Answer: A
Q4. You need to retrieve a value from local storage by using the key "aardvark." Which code fragment should you use?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: A
Q5. You create an instance named "ac" of an accelerometer object. Which code fragment will retrieve a single update?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: C
Q6. Which two tags are used with the HTML5 TABLE element? (Choose two.)
A. <body>
B. <tfoot>
C. <td>
D. <head>
Answer: B,C
Explanation: An HTML table consists of the <table> element and one or more <tr>, <th>, and <td> elements.
The <tr> element defines a table row, the <th> element defines a table header, and the <td> element defines a table cell.
A more complex HTML table may also include <caption>, <col>, <colgroup>, <thead>, <tfoot>, and <tbody> elements.
Q7. Which element should you use to rotate an SVG square?
A. path
B. ANIMATETRANSFORM
C. ANIMATEMOTION
D. AREA SHAPE
Answer: B
Q8. You need to ensure the scope of a variable named j is limited to the block of a single function named foo(). Which JavaScript code fragment will accomplish this?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: A
Q9. What value does the following JavaScript code fragment store into the variable num?
varnum = localStorage.length;
A. maximum length of a character string
B. potential capacity of local storage
C. number of bytes available in local storage
D. number of key-value pairs in local storage
Answer: D
Q10. Which code fragment sets up a timer that calls a function named "adjust" every second?
A. setTimeout(adjust, 1000);
B. setInterval(adjust, 1000);
C. setInterval(adjust, 1);
D. setTimeout(adjust, 1);
Answer: B
Q11. Which CSS property defines which sides of an element where other floating elements are not allowed?
A. float
B. position
C. display
D. clear
Answer: D
Q12. Which item specifies resources for an offline HTML5 application?
A. a CSS style sheet
B. an HTML5 file
C. a JavaScript file
D. a cache manifest file
Answer: A
Q13. What is the default value of the CSS position property?
A. fixed
B. absolute
C. static
D. relative
Answer: C
Q14. An HTML5 application can be used without going through a manufacturer's approval process if:
A. the browser on the device supports HTML5.
B. the manufacturer has unlocked the device's SIM card.
C. the application has been compiled.
D. the developer has the correct application ID.
Answer: A
Q15. Which CSS3 code fragment will style only the external links in an HTML document?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: D
Q16. DRAG DROP
Match the HTML5 input attributes to the corresponding descriptions. (To answer, drag the appropriate attribute from the column on the left to its description on the right. Each attribute may be used once, more than once, or not at all. Each correct match is worth one point.)
Answer:
Q17. When applied to an image, the CSS float:right property:
A. positionsthe image to the left and displays all of the text to the right of the image.
B. positionsthe image to the right of the region and wraps text around the top, left, and bottom.
C. positionsthe image to the left of the region and wraps text around the top, right, and bottom.
D. positionsthe image to the right and wraps text to the top and bottom.
Answer: B