Q1. Which two terms represent interfaces in the File API? (Choose two.)
A. Font
B. Blob
C. Keygen
D. FileList
Answer: B,D
Explanation: The File Interface This interface describes a single file in a FileList and exposes its name. It inherits from
Blob.
IDL
[Constructor(Blob fileBits, [EnsureUTF16] DOMStringfileName)]
interface File : Blob {
readonly attribute DOMString name;
readonly attribute Date lastModifiedDate;
};
Q2. You are creating a page by using HTML5. You add script tags to the page.
You need to use JavaScript to access an element by id and add a class to the element.
Which property or attribute should you use?
A. the tagName property
B. the className property
C. the style property
D. the class attribute
Answer: B
Q3. 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
Q4. You create an interface for a touch-enabled application.
During testing you discover that some touches trigger multiple input areas.
Which situation will cause this problem?
A. The touch screen is not calibrated.
B. The input areas are too close together.
C. The defined input areas are too small.
D. The input areas are semi-transparent.
Answer: B
Q5. Which three event attributes are used with the CAPTION element in HTML5? (Choose three.)
A. onmouseover
B. ondblclick
C. onkeydown
D. onconnect
E. onabort
Answer: A,B,C
Explanation: A: onmouseover
The cursor moved over the object (i.e. user hovers the mouse over the object).
B: ondblclick
Invoked when the user clicked twice on the object.
C: onkeydown
Invoked when a key was pressed over an element.
Q6. Which CSS code fragment centers an image horizontally?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: D
Q7. Which code fragment will display the Play and Pause controls in the audio interface?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: A
Q8. Which two events are supported on touch devices? (Choose two.)
A. click
B. touchstart
C. selection
D. drag
Answer: A,B
Explanation: when the user touches the screen both touch and click events will occur.
The touchstart event
A user agent must dispatch this event type to indicate when the user places a touch point
on the touch surface.
Note:
The main touch events are:
touchstarttriggered when a touch is detected
touchmovetriggered when a touch movement is detected
touchendtriggered when a touch is removed e.g. the user’s finger is removed from the
touchscreen
touchcanceltriggered when a touch is interrupted, e.g. if touch moves outside of the touch-
capable area
Q9. DRAG DROP
Match the CSS terms to the corresponding examples. (To answer, drag the appropriate term from the column on the left to its example on the right. Each term may be used once, more than once, or not at all. Each correct match is worth one point.)
Answer:
Q10. Which CSS3 code segment styles the text color of EM elements to be red and semi-transparent?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: B