Test Series - html

Test Number 16/72

Q: Which protocol is supported by Android browsers?
A. HTTPS
B. HLS
C. RTMP
D. FTP
Solution: HTTPS i.e. Hypertext Transfer Protocol Secure is used on internet. HLS which stands for Hypertext Transfer Protocol Live Streaming invented by Apple Inc., a new streaming protocol which is supported by android browsers. RTMP stands for Real-Time Messaging Protocol, FTP stands for File Transfer Protocol.
Q: _________ is a JavaScript library that implements the most common user interface elements and interactions like sliders, accordions, tabs, and so on.
A. JavaScript
B. JQuery UI
C. VTS
D. JCL
Solution: JQuery UI is a curated set of user interface interactions, effects, widgets, and themes built on top of the jQuery JavaScript Library. JavaScript is a scripting language. VTS is a powerful rendering engine browser for JavaScript. JCL is Job Control Language which is also named as scripting language.
Q: In HTML Audio/Video DOM, __________ sets or returns whether the audio/video should be loaded when the page loads.
A. preload
B. autoplay
C. buffered
D. controller
Solution: Autoplay, preload, buffered, controller etc are the different kinds of attribute of video/audio element. Using autoplay, video/audio automatically begins to play. The preload property allows the author to provide a hint to the browser about what he/she thinks will lead to the best user experience. This attribute may be ignored in some instances.
Q: Which of the following is not a HTML5 tag?
A. 
B. 
C. 
D. 
Solution: 
Q: What will happen if height and width of video are not set while video loads?
A. page flickers
B. page does not load
C. page crash
D. page closes
Solution: If height and width are not set, the browser does not know the size of the video. The effect will be that the page will change (or flicker) while the video loads.
Q: Which of the following HTML Video – Media Type is not supported in IE?
A. WebM
B. MP4
C. Ogg
D. MP4 FLAC
Solution: The Ogg container format with the Theora video codec and the Vorbis audio codec is supported in desktop/mobile Gecko (Firefox), Chrome, and Opera, and support for the format can be added to Safari (but not on iOS) by installing an add-on. The format is not supported in Internet Explorer in any way. The most widely used format for HTMl video i.e MP4 format is supported in IE.
Q: In HTML Audio/Video DOM, __________ sets or returns the default speed of the audio/video playback.
A. currentTime
B. duration
C. defaultPlaybackRate
D. playbackRate
Solution: CurrentTime set or returns current playback position while playing audio/video. The length of the current audio/video is set or returned by duration. Default speed of playback is given by defaultPlaybackRate while playback returns speed of the audio/video.
Q: In HTML Audio/Video DOM, __________ sets or returns the CORS settings of the audio/video.
A. currentTime
B. duration
C. defaultPlaybackRate
D. crossOrigin
Solution: CurrentTime set or returns current playback position while playing audio/video. The length of the current audio/video is set or returned by duration. Default speed of playback is given by defaultPlaybackRate. The purpose of the crossorigin attribute is to allow you to configure the CORS requests for the element’s fetched data.
Q: In HTML Audio/Video DOM, __________ returns a TimeRanges object representing the buffered parts of the audio/video.
A. preload
B. networkState
C. buffered
D. controller
Solution: Preload is used to set or return whether the video/ audio has been loaded on page. Current network of audio/video has been set or returned by networkState. A buffered range is a time-range of buffered audio/video. The user gets several buffered ranges if he/she skips in the audio/video. Media controller of current video/audio is given or returned by controller.

You Have Score    /9