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 IV

Q 1 - Which of the following attribute triggers event when media can be played to the end, without stopping for buffering?

A - onbeforeplay

B - onplay

C - oncanplay

D - oncanplaythrough

Answer : D

Explanation

oncanplaythrough − Triggers event when media can be played to the end, without stopping for buffering.

Q 2 - Which of the following attribute triggers event when a context menu is triggered?

A - oncontextmenu

B - ondrag

C - ondragend

D - ondragenter

Answer : A

Explanation

oncontextmenu − Triggers event when a context menu is triggered.

Q 3 - Which of the following attribute triggers event when an element is dragged?

A - ondragleave

B - ondrag

C - ondragend

D - ondragenter

Answer : B

Explanation

ondrag − Triggers event when an element is dragged.

Q 4 - Which of the following attribute triggers event at the end of a drag operation?

A - ondragleave

B - ondrag

C - ondragend

D - ondragenter

Answer : C

Explanation

ondragend − Triggers event at the end of a drag operation.

Q 5 - Which of the following attribute triggers event when an element has been dragged to a valid drop target?

A - ondragleave

B - ondrag

C - ondragend

D - ondragenter

Answer : D

Explanation

ondragenter − Triggers event when an element has been dragged to a valid drop target.

Q 6 - Which of the following attribute triggers event when an element leaves a valid drop target?

A - ondrag

B - ondragleave

C - ondragover

D - ondragstart

Answer : B

Explanation

ondragleave − Triggers event when an element leaves a valid drop target.

Q 7 - Which of the following attribute triggers event when an element is being dragged over a valid drop target?

A - ondragleave

B - ondrag

C - ondragover

D - ondragstart

Answer : C

Explanation

ondragover − Triggers event when an element is being dragged over a valid drop target.

Q 8 - Which of the following attribute triggers event at the start of a drag operation?

A - ondragleave

B - ondrag

C - ondragover

D - ondragstart

Answer : D

Explanation

ondragstart − Triggers event at the start of a drag operation.

Q 9 - Which of the following attribute triggers event when dragged element is being dropped?

A - ondrop

B - ondurationchange

C - onemptied

D - onended

Answer : A

Explanation

ondrop − Triggers event when dragged element is being dropped.

Q 10 - Which of the following attribute triggers event when the length of the media is changed?

A - ondrop

B - ondurationchange

C - onemptied

D - onended

Answer : B

Explanation

ondurationchange − Triggers event when the length of the media is changed.

Q 11 - Which of the following attribute triggers event when a media resource element suddenly becomes empty?

A - ondrop

B - ondurationchange

C - onemptied

D - onended

Answer : C

Explanation

onemptied − Triggers event when a media resource element suddenly becomes empty.

Q 12 - Which of the following attribute triggers event when media has reach the end?

A - ondrop

B - ondurationchange

C - onemptied

D - onended

Answer : D

Explanation

onended − Triggers event when media has reach the end.

Q 13 - Which of the following attribute triggers event when an error occur?

A - onerror

B - error

C - onformerror

D - onvalidation

Answer : A

Explanation

onerror − Triggers event when an error occur.

Q 14 - Which of the following attribute triggers event when the window gets focus?

A - focus

B - onfocus

C - onformchange

D - onforminput

Answer : B

Explanation

onfocus − Triggers event when the window gets focus.

Q 15 - Which of the following attribute triggers events when a form changes?

A - onchange

B - onedit

C - onformchange

D - onforminput

Answer : C

Explanation

onformchange − Triggers events when a form changes.

Q 16 - Which of the following attribute triggers events when a form gets user input?

A - onchange

B - onedit

C - onformchange

D - onforminput

Answer : D

Explanation

onforminput − Triggers events when a form gets user input.

Q 17 - Which of the following attribute triggers events when the document has change?

A - onhaschange

B - oninput

C - onchange

D - onloadeddata

Answer : A

Explanation

onhaschange − Triggers events when the document has change.

Q 18 - Which of the following attribute triggers event when an element gets user input?

A - onhaschange

B - oninput

C - ondata

D - onloadeddata

Answer : B

Explanation

oninput − Triggers event when an element gets user input.

Q 19 - Which of the following attribute triggers event when an element is invalid?

A - onhaschange

B - oninput

C - oninvalid

D - onvalidate

Answer : C

Explanation

oninvalid − Triggers event when an element is invalid.

Q 20 - Which of the following attribute triggers event when media data is loaded?

A - onhaschange

B - oninput

C - onload

D - onloadeddata

Answer : D

Explanation

onloadeddata − Triggers event when media data is loaded.

Q 21 - Which of the following attribute triggers event when the duration and other media data of a media element is loaded?

A - onloadedmetadata

B - onloadstart

C - onmessage

D - onoffline

Answer : A

Explanation

onloadedmetadata − Triggers event when the duration and other media data of a media element is loaded.

Q 22 - Which of the following attribute triggers event when the browser starts to load the media data?

A - onloadedmetadata

B - onloadstart

C - onmessage

D - onoffline

Answer : B

Explanation

onloadstart − Triggers event when the browser starts to load the media data.

Q 23 - Which of the following attribute triggers event when the message is triggered?

A - onloadedmetadata

B - onloadstart

C - onmessage

D - onoffline

Answer : C

Explanation

onmessage − Triggers event when the message is triggered.

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

A - onloadedmetadata

B - onloadstart

C - onmessage

D - onoffline

Answer : D

Explanation

onoffline − Triggers event when the document goes offline.

Q 25 - Which of the following attribute triggers event when the document comes online?

A - onloadedmetadata

B - onloadstart

C - onmessage

D - ononline

Answer : D

Explanation

ononline − Triggers event when the document comes online.

Answer Sheet

Question Number Answer Key
1 D
2 A
3 B
4 C
5 D
6 B
7 C
8 D
9 A
10 B
11 C
12 D
13 A
14 B
15 C
16 D
17 A
18 B
19 C
20 D
21 A
22 B
23 C
24 D
25 D
html5_questions_answers.htm
Advertisements