Html5 Mock Test III
Html5 Mock Test III
This section presents you various set of Mock Tests related to HTML5 Framework. You can
download these sample mock tests at your local machine and solve offline at your convenience.
Every mock test is supplied with a mock test key to let you verify the final score and grade yourself.
A - HTML5 element <canvas> gives you an easy and powerful way to draw graphics using
JavaScript.
A - HTML5 supports <audio> tag which is used to embed sound content in an HTML or XHTML
document.
B - The current HTML5 draft specification does not specify which audio formats browsers should
support in the audio tag.
A - Commonly used audio formats ogg, mp3 and wav are supported.
B - You can use <source> tag to specify media along with media type and many other attributes.
C - An audio element allows multiple source elements and browser will use the first recognized
format.
A - HTML5 supports <video> tag which is used to embed a video file in an HTML or XHTML
document.
B - The current HTML5 draft specification does not specify which video formats browsers should
support in the video tag.
C - Ogg files with Thedora video codec and Vorbis audio codec are supported.
A - MPEG4 files with H.264 video codec and AAC audio codec are supported.
B - You can use <source> tag to specify media along with media type and many other attributes.
C - An video element allows multiple source elements and browser will use the first recognized
format.
A - HTML5 Geolocation API lets you share your location with your favorite web sites.
B - A Javascript can capture your latitude and longitude and can be sent to backend web server
and do fancy location-aware things like finding local businesses or showing your location on a
map.
C - Today most of the browsers and mobile devices support Geolocation API.
A - The geolocation APIs work with a new property of the global navigator object.
B - The geolocation object is a service object that allows widgets to retrieve information about
the geographic location of the device.
A - navigator.geolocation
B - browser.geolocation
C - API.geolocation
Q 9 - Which of the following method retrieves the current geographic location of the
user?
A - geolocation.getCurrentPosition
B - geolocation.watchPosition
C - geolocation.clearPosition
A - geolocation.getCurrentPosition
B - geolocation.watchPosition
C - geolocation.clearPosition
A - Web Workers do all the computationally expensive tasks without interrupting the user
interface and typically run on separate threads.
B - Web Workers allow for long-running scripts that are not interrupted by scripts that respond to
clicks or other user interactions.
C - Web Workers allow long tasks to be executed without yielding to keep the page responsive.
A - accesskey
B - key
C - contextmenu
D - contextkey
Q 13 - Which of the following attribute specifies if the user can edit the element's
content or not?
A - editable
B - contenteditable
C - contextmenu
D - content
Q 14 - Which of the following attribute specifies the context menu for an element?
A - key
B - contextcontent
C - contextmenu
D - context
A - drag
B - content
C - context
D - draggable
A - item
B - itemprop
C - itemcheck
D - itemgroup
A - item
B - itemprop
C - itemcheck
D - itemgroup
Q 18 - Which of the following attribute specifies if the element must have it's spelling
or grammar checked?
A - item
B - itemcheck
C - spellcheck
D - itemgroup
Q 19 - Which of the following attribute triggers event when the document goes
offline?
A - offline
B - off
C - out
D - onbeforeonload
B - onabort
C - abort
D - onbeforeonload
Q 21 - Which of the following attribute triggers event after the document is printed?
A - offlineprint
B - onprint
C - onafterprint
D - onbeforeprint
Q 22 - Which of the following attribute triggers event before the document loads?
A - offline
B - onabort
C - onload
D - onbeforeonload
Q 23 - Which of the following attribute triggers event before the document is printed?
A - onbeforeprint
B - onafterprint
C - onprint
D - beforeprint
Q 24 - Which of the following attribute triggers event when the window loses focus?
A - onbeforeload
B - onblur
C - onlostfocus
D - lostfocus
Q 25 - Which of the following attribute triggers event when media can start play, but
might has to stop for buffering?
A - onbeforeplay
B - onplay
C - oncanplay
D - oncanplaythrough
ANSWER SHEET
1 C
2 C
3 D
4 D
5 D
6 D
7 C
8 A
9 A
10 C
11 D
12 A
13 B
14 C
15 D
16 A
17 B
18 C
19 A
20 B
21 C
22 D
23 A
24 B
25 C
Loading [MathJax]/jax/output/HTML-CSS/jax.js