HTML5 is a markup language used for structuring and
presenting content on the World Wide Web. It was the fifth and last major
version of HTML that is a World Wide Web Consortium recommendation
|
HTML5 Online Quiz (Agami best computer training center Academy in Tangail) |
Q 1 - Which of the following feature is a part of HTML 5?
Q 2 - Which of the following tag represents the footer of a section in
HTML5?
A - footer
Answer : A
Explanation
'footer'
tag represents the footer of a section.
Q 3 - Which of the following input control represents a time (hour,
minute, seconds, fractional seconds) encoded according to ISO 8601 in Web Form
2.0?
B - time
Answer : B
Explanation
'time'
input control represents a time (hour, minute, seconds, fractional seconds)
encoded according to ISO 8601.
Q 4 - Which of the following tag is used to represent the result of
different types of output in HTML5?
A - output
Answer : A
Explanation
HTML5
introduced a new element <output> which is used to represent the result
of different types of output, such as output written by a script.
Q 5 - Which value of Socket.readyState attribute of WebSocket indicates
that the connection is going through the closing handshake?
C - 2
Answer : C
Explanation
Answer : C
Explanation
Both of
the above options are correct.
Q 7 - Which of the following attribute is used to group elements?
A - item
Answer : A
Explanation
item −
Used to group elements.
Q 8 - Which of the following attribute triggers event when media can
be played to the end, without stopping for buffering?
D - oncanplaythrough
Answer : D
Explanation
oncanplaythrough
− Triggers event when media can be played to the end, without stopping for
buffering.
Q 9 - Which of the following attribute triggers an event when an element
is being dragged over a valid drop target?
C - ondragover
Answer : C
Explanation
ondragover
− Triggers an event when an element is being dragged over a valid drop target.
Q 10 - Which of the following attribute triggers events when the document has changed?
A - onhaschange
Answer : A
Explaination
Answer : D
Explaination
Answer : C
Explaination
Both of
the above options are correct.
Q 13 - Which of the following input control accepts only numerical
value in Web Form 2.0?
C - number
Answer : C
Explaination
'number'
input control accepts only numerical value. The step attribute specifies the
precision, defaulting to 1.
Q 14 - Which of the following tag insists to have a value in an input
control in HTML5?
D - required
Answer : D
Explanation
Answer : D
Explaination
Answer : C
Explanation
Both of
the above options are correct.
Q 17 - Which of the following attribute specifies whether or not a user
is allowed to drag an element?
D - draggable
Answer : D
Explanation
draggable
- Specifies whether or not a user is allowed to drag an element.
Q 18 - Which of the following attribute triggers event when media can
start play, but might has to stop for buffering?
C - oncanplay
Answer : C
Explanation
oncanplay
− Triggers event when media can start play, but might has to stop for
buffering.
Q 19 - Which of the following attribute triggers event when the length
of the media is changed?
B - ondurationchange
Answer : B
Explaination
ondurationchange
− Triggers event when the length of the media is changed.
Q 20 - Which of the following attribute triggers event when the duration
and other media data of a media element is loaded?
A - onloadedmetadata
Answer : A
Explanation
onloadedmetadata
− Triggers event when the duration and other media data of a media element is
loaded.
Q 21 - Which of the following browser supports HTML5 in its latest
version?
C - Both of the above.
Answer : C
Explanation
Answer : C
Explaination
Both of
the above options are correct.
Q 23 - Which of the following input control represents a date
consisting of a year and a week number encoded according to ISO 8601 in Web
Form 2.0?
A - week
Answer : A
Explanation
'week'
input control represents a date consisting of a year and a week number encoded
according to ISO 8601.
Q 24 - Which of the following tag automatically focus one particular
form field in HTML5?
C - autofocus
Answer : C
Explanation
This is
a simple one-step pattern, easily programmed in JavaScript at the time of
document load, automatically focus one particular form field.
Q 25 - Which value of Socket.readyState atribute of WebSocket indicates
that the connection has been closed or could not be opened?
D - 3
Answer : D
Explanation
Answer : C
Explanation
Both of
the above options are correct.
Q 27 - Which of the following attribute specifies a keyboard shortcut
to access an element in HTML5?
A - accesskey
Answer : A
Explaination
accesskey
- Specifies a keyboard shortcut to access an element.
Q 28 - Which of the following attribute triggers event when media can
start play, but might has to stop for buffering?
C - oncanplay
Answer : C
Explaination
oncanplay
− Triggers event when media can start play, but might has to stop for
buffering.
Q 29 - Which of the following attribute triggers event when dragged
element is being dropped?
A - ondrop
Answer : A
Explanation
ondrop −
Triggers event when dragged element is being dropped.
Q 30 - Which of the following attribute triggers event when the
duration and other media data of a media element is loaded?
A - onloadedmetadata
Answer : A
Explaination
onloadedmetadata
− Triggers event when the duration and other media data of a media element is
loaded.
Q 31 - Is HTML5 backward compatible with old browsers?
A - true
Answer : A
Explaination
Yes!
HTML5 is designed, as much as possible, to be backward compatible with existing
web browsers.
Q 32 - Which of the following tag represents the header of a section in
HTML5?
D - header
Answer : D
Explaination
'header'
tag represents the header of a section.
Q 33 - Which of the following input control is used for input fields
that should contain a value from a range of numbers in Web Form 2.0?
D - range
Answer : D
Explaination
Answer : D
Explanation
Answer : D
Explanation
Answer : A
Explaination
geolocation.getCurrentPosition()
method retrieves the current geographic location of the user.
Q 37 - Which of the following attribute specifies if the element must
have it's spelling or grammar checked?
C - spellcheck
Answer : C
Explanation
spellcheck
− Specifies if the element must have it's spelling or grammar checked.
Q 38 - Which of the following attribute triggers event when an element
has been dragged to a valid drop target?
D - ondragenter
Answer : D
Explanation
ondragenter
− Triggers event when an element has been dragged to a valid drop target.
Q 39 - Which of the following attribute triggers event when a media
resource element suddenly becomes empty?
C - onemptied
Answer : C
Explanation
onemptied
− Triggers event when a media resource element suddenly becomes empty.
Q 40 - Which of the following attribute triggers event when an element
gets user input?
B - oninput
Answer : B
Explanation
Answer : D
Explaination
All of
the above options are correct.
Q 42 - Which of the following tag represents a section of the document
intended for navigation in HTML5?
B - nav
Answer : B
Explanation
'nav' the tag represents a section of the document intended for navigation.
Q 43 - Which of the following input control accepts only numerical
value in Web Form 2.0?
C - number
Answer : C
Explanation
'number'
input control accepts only numerical value. The step attribute specifies the
precision, defaulting to 1.
Q 44 - Which of the following tag insists to have a value in an input
control in HTML5?
D - required
Answer : D
Explanation
Answer : C
Explanation
Answer : D
Explanation
All of
the above options are correct.
Q 47 - Which of the following attribute specifies whether or not a user
is allowed to drag an element?
D - draggable
Answer : D
Explaination
draggable
- Specifies whether or not a user is allowed to drag an element.
Q 48 - Which of the following attribute triggers event when the window
loses focus?
B - onblur
Answer : B
Explanation
onblur −
Triggers event when the window loses focus.
Q 49 - Which of the following attribute triggers event when a media
resource element suddenly becomes empty?
C - onemptied
Answer : C
Explanation
onemptied
− Triggers event when a media resource element suddenly becomes empty.
Q 50 - Which of the following attribute triggers events when a form
gets user input?
D - onforminput
Answer : D
Explanation
onforminput
− Triggers events when a form gets user input.
0 Comments