Q1. DRAG DROP
Match the touch events to the corresponding actions. (To answer, drag the appropriate touch event from the column on the left to its action on the right. Each touch event may be used once, more than once, or not at all. Each correct match is worth one point.)
Answer:
Q2. You add script tags to an HTML page. You need to update the text value within a specific HTML element. You access the HTML element by id. What should you do next?
A. Use the createTextNode method.
B. Use the appendChild method.
C. Set the new text value with the setAttribute method.
D. Use the firstChild property and set the new text value with the nodeValue property.
Answer: D
Q3. Which HTML5 tag is used to mark text that has been added to the original document?
A. <q>
B. <pre>
C. <ins>
D. <i>
Answer: C
Q4. Which code fragment will display an image file while the video is downloading?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: B
Q5. In HTML5, the autofocus attribute:
A. defines the cursor location when a form is first accessed.
B. controls the movement between fields in a form.
C. adds a default value to the field in a form.
D. enables one field and disables all others.
Answer: A
Q6. Which are two features of SVG? (Choose two.)
A. uses high performance pixel-based graphics
B. can be modified by using CSS
C. uses high performance raster-based graphics
D. can be modified by using JavaScript
Answer: C,D
Explanation:
Note:
SVG stands for Scalable Vector Graphics
SVG defines the graphics in XML format
SVG graphics do NOT lose any quality if they are zoomed or resized
Every element and every attribute in SVG files can be animated
SVG is a W3C recommendation
Q7. 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
Q8. DRAG DROP
Match the HTML5 technologies to the corresponding descriptions. (To answer, drag the appropriate technology from the column on the left to its description on the right. Each technology may be used once, more than once, or not at all. Each correct match is worth one point.)
Answer:
Q9. Which two HTML5 tags format text content only? (Choose two.)
A. <map>
B. <strong>
C. <canvas>
D. <em>
Answer: B,D
Explanation:
Example:
I can <em>not</em>emphasise this enough!
Q10. The variable named "ctx" is the context of an HTML5 canvas object. What does the following code fragment draw? ctx.arc(x, y, r, 0, Math.PI, true);
A. a circle at the given point
B. a square at the given point
C. a semi-circle at the given point
D. a line from one point to another
Answer: C