Interview
questions on html5. It is objective type basic quiz questions and answers for
interview as well as assignment.
1. Which of the following is a not
content-specific element in HTML5?
A. <article>
B. <footer>
C. <header>
D. <nav>
E. <narrow>
2. Which of the following is not
form controls elements in HTML5?
A. calendar
B. date
C. time
D. email
E. All of the above are form
controls elements.
3. Which of the following is not
new element of HTML5?
A. <footer>
B. <header>
C. <kbd>
D. <hgroup>
E. <mark>
4. Which of the following is not
new element of HTML5?
A. <meter>
B. <nav>
C. <progress>
D. <noscript>
E. <rt>
5. Which of the following is not
new form element of HTML5?
A. <datalist>
B. <optgroup>
C. <keygen>
D. <output>
E. Both (c) and (d)
6. Which of the following element
has not removed from HTML5?
A. <acronym>
B. <map>
C. <applet>
D. <dir>
E. <tt>
7. Which of the following element
has not removed from HTML5?
A. <frame>
B. <frameset>
C. <noframes>
D. <fieldset>
E. <center>
8. Which of the following element
is not related video in HTML5?
A. <video>
B. <source>
C. <play>
D. <track>
E. All of the above are related to
video.
9.
<video controls="controls" preload="auto">
<source src="song.mp4"
type="video/mp4"
/>
</video>
Which of the following is true?
A. It should load the entire video
when the page loads.
B. It should load only metadata
when the page loads.
C. It should load the part of video
when the page loads.
D. It should not load the video
when the page loads.
E. None of these.
10.
<video controls="controls" preload="metadata">
<source src="song.mp4"
type="video/mp4"
/>
</video>
Which of the following is true?
A. It should load the entire video
when the page loads.
B. It should load only metadata
when the page loads.
C. It should load the part of video
when the page loads.
D. It should not load the video
when the page loads.
E. Error.
11. Which of the following
attribute is responsible for subtitle of a video inside <video> element?
A. <caption>
B. <subtitle>
C. <source>
D. <autoplay>
E. <track>
12. Which of the following is
incorrect value of kind attribute of <track> element?
A. captions
B. chapters
C. descriptions
D. metadata
E. All of the above are correct
value.
13. Which of the following is not
true about kind attribute of a <track> element?
A. captions: The track defines
translation of dialogue and sound effects
B. chapters: The track defines
chapter titles
C. subtitles: The track defines
subtitles, used to display subtitles in a video
D. metadata: The track defines
content used by scripts.
E. All of the above are correct.
14. Which of the following is not
attribute of the <track> element.
A. subtitle
B. default
C. kind
D. src
E. label
15. Which of the following is not
event of <video> element?
A. play
B. pause
C. progress
D. error
E. Above all are event of the
<video> element.
16. Which of the following is not
event of <video> element?
A. timeupdate
B. ended
C. abort
D. error
E. empty
17. Which of the following is not
event of <video> element?
A. emptied
B. waiting
C. loadedmetadata
D. seeking
E. abort
18. Which of the following is not
property of <video> element?
A. abort
B. currentTime
C. currentSrc
D. videoWidth
E. duration
19. Which of the following is not
property of <video> element?
A. height
B. volume
C. abort
D. seeking
E. muted
20. Suppose your browser doesn't
support <video> tag
What will be output of following code?
<video width="320" height="240" >
Exact
Help
</video>
A. Error message
B. Exact Help
C. Blank page
D. Work in audio mode.
E. None of these.
21. The <video> element
allows:
A. Single <source> element.
B. Two <source> element.
C. Three <source> element.
D. Multiple <source> elements.
E. None of these.
22.
If there are multiple <source> element inside a <video>
element. Browser will display the video of:
A. First <source> element.
B. Last <source> element.
C. All <source> element from
first to last.
D. Will depend upon the browser support
of media source.
E. Error message: multiple media
source.
23. Which attribute in
<video> element is responsible for play/pause button?
A. autoplay
B. poster
C. preload
D. controls
E. It is default of <video>
element.
24. Which attribute in
<video> element is responsible for start playing as soon as it is ready?
A. preload
B. autoplay
C. loop
D. autorun
E. fastload
25.
Height of the video player by <video> element depends:
A. Size of media source.
B. Poster attribute
C. Height attribute
D. Size attribute
E. Width attribute
26.
Which attribute in <video> element is responsible for video will
start over again, every time it is finished?
A. autostart
B. autoplay
C. loop
D. replay
E. None of these.
27. Which attribute in
<video> element is responsible for audio output of the video should be muted?
A. controls
B. voice=0
C. muted
D. sound
E. None of these.
28. How to display an image when
media is downloading by <video> element in HTML5:
A. Using src attribute link to
image.
B. Using poster attribute.
C. Using default attributes.
D. Using controls attribute.
E. Using anyone of the above.
29. How can we specify the source
of media in <video> element?
A. By using src attribute
B. By using <source> element.
C. By using <controls>
element.
D. Both option (a) and (b)
E. None of these.
30. What is the correct way to set
the autoplay attribute in HTML5?
A. <video autoplay>
B. <video
autoplay="autoplay">
C. <video
autoplay="">
D. Only options (B) and (C)
E. Options (A), (B) and (C) are
correct.
31. Which of the following is false
about autoplay attribute of <video> element?
A. It is boolean attribute.
B. Video will automatically start
playing.
C. It value can be
"autoplay" or ""
D. It is correct to write <video
autoplay>
E. All of the above are correct.
32. Controls attribute in
<video> element doesn't include:
A. Play button
B. Pause button
C. Seeking
D. Volume
E. It includes all of the above.
33. Controls attribute in
<video> element doesn't include:
A. Full screen toggle
B. Captions/Subtitles (when
available in media)
C. Track (when available in media)
D. Source
E. It includes all of the above.
34. Which of the following in not
true about height and width attribute in <video> element in HTML5.
A. If height and width are set then space
required for the video is reserved when the page is loaded.
B. If height and width are not set, the browser
does not know the size of the video, and cannot reserve the appropriate space
to it.
C. If height and width are not set then page
layout may change during loading.
D. Downsizing a large video with the height and
width attributes forces a user to download the original video.
E. All of the above are correct.
35. Which of the following web
browser doesn't support the loop attribute of <video> element?
A. Internet Explorer 9
B. Google Chrome 6
C. Firefox 4.0
D. Opera 10.6
E. Apple Safari 5
36. Which of the following is
incorrect way to set the loop attribute of <video> element in HTML5?
A. <video loop>
B. <video loop="loop">
C. <video loop="">
D. <video loop="default">
E. All of the above are correct.
37. Which of the following web
browser doesn't support the muted attribute of <video> element?
A. Internet Explorer 9
B. Google Chrome 6
C. Firefox 4.0
D. Opera 10.6
E. It is supported by above all
browsers.
38. Which of the following is false
about poster attribute of <video> element?
A. The poster attribute specifies
an image to be shown while the video is downloading.
B. If this is not specified it will
display first frame of the video.
C. If this is not specified it will
display black screen.
D. It accepts relative URL.
E. It accepts absolute URL.
39. When autoplay attribute has
defined in <video> element then:
A. preload attribute is ignored.
B. Web browser assume
preload="auto"
C. Web browser assume
preload="metadata"
D. Both (A) and (C)
E. None of these.
40. Which of the following element
has not removed from HTML5?
A. <font>
B. <basefont>
C. <small>
D. <big>
E. <strike>
Answers:
1. E
2. E
3. C
4. D
5. B
6. B
7. D
8. C
9. A
10. B
11. E
12. E
13. E
14. A
15. A
16. D
17. D
18. A
19. C
20. B
21. D
22. D
23. D
24. B
25. C
26. C
27. C
28. B
29. D
30. E
31. E
32. E
33. D
34. E
35. D
36. D
37. A
38. C
39. A
40. C