HTML5 Mock Test



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.

Questions and Answers

HTML5 Mock Test III

Q 8 - Which of the following method returns a geolocation object in HTML5?

A - navigator.geolocation

B - browser.geolocation

C - API.geolocation

D - None of the above.

Answer : A

Explanation

navigator.geolocation returns geolocation object.

Q 9 - Which of the following method retrieves the current geographic location of the user?

A - geolocation.getCurrentPosition()

B - geolocation.watchPosition()

C - geolocation.clearPosition()

D - None of the above.

Answer : A

Explanation

geolocation.getCurrentPosition() method retrieves the current geographic location of the user.

Q 10 - Which of the following method cancels an ongoing watchPosition call?

A - geolocation.getCurrentPosition()

B - geolocation.watchPosition()

C - geolocation.clearPosition()

D - None of the above.

Answer : C

Explanation

geolocation.clearPosition() method cancels an ongoing watchPosition call.

Q 12 - Which of the following attribute specifies a keyboard shortcut to access an element in HTML5?

A - accesskey

B - key

C - contextmenu

D - contextkey

Answer : A

Explanation

accesskey - Specifies a keyboard shortcut to access an element.

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

Answer : B

Explanation

contenteditable − Specifies if the user can edit the element's content or not.

Q 14 - Which of the following attribute specifies the context menu for an element?

A - key

B - contextcontent

C - contextmenu

D - context

Answer : C

Explanation

contextmenu - Specifies the context menu for an element.

Q 15 - Which of the following attribute specifies whether or not a user is allowed to drag an element?

A - drag

B - content

C - context

D - draggable

Answer : D

Explanation

draggable - Specifies whether or not a user is allowed to drag an element.

Q 16 - Which of the following attribute is used to group elements?

A - item

B - itemprop

C - itemcheck

D - itemgroup

Answer : A

Explanation

item − Used to group elements.

Q 17 - Which of the following attribute is used to group items?

A - item

B - itemprop

C - itemcheck

D - itemgroup

Answer : B

Explanation

itemprop − Used to group items.

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

Answer : C

Explanation

spellcheck − Specifies if the element must have it's spelling or grammar checked.

Q 19 - Which of the following attribute triggers event when the document goes offline?

A - offline

B - off

C - out

D - onbeforeonload

Answer : A

Explanation

offline − Triggers event when the document goes offline.

Q 20 - Which of the following attribute triggers an abort event?

A - offline

B - onabort

C - abort

D - onbeforeonload

Answer : B

Explanation

onabort − Triggers an abort event.

Q 21 - Which of the following attribute triggers event after the document is printed?

A - offlineprint

B - onprint

C - onafterprint

D - onbeforeprint

Answer : C

Explanation

onafterprint − Triggers event after the document is printed.

Q 22 - Which of the following attribute triggers event before the document loads?

A - offline

B - onabort

C - onload

D - onbeforeonload

Answer : D

Explanation

onbeforeonload − Triggers event before the document loads.

Q 23 - Which of the following attribute triggers event before the document is printed?

A - onbeforeprint

B - onafterprint

C - onprint

D - beforeprint

Answer : A

Explanation

onbeforeprint − Triggers event before the document is printed.

Q 24 - Which of the following attribute triggers event when the window loses focus?

A - onbeforeload

B - onblur

C - onlostfocus

D - lostfocus

Answer : B

Explanation

onblur − Triggers event when the window loses focus.

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 : C

Explanation

oncanplay − Triggers event when media can start play, but might has to stop for buffering.

Answer Sheet

Question Number Answer Key
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
html5_questions_answers.htm
Advertisements