Test Series - html

Test Number 17/72

Q: There is an audio format supported across all browsers.
A. True
B. False
C. 1
D. .
Solution: There are 3 formats that are used in HTML5 Audio and are .mp3, .m4a AAC also known as H.264 format.
Q: Which of the following tag is used for audio in HTML5?
A. 
B. 
C. 
D. 
Solution: 
Q: Which tag is used to defines multiple media resources for media elements audio and video?
A. 
B. 
C. 
D. 
Solution: 
Q: Which of the following browser does not support wav file format?
A. Opera
B. Firefox
C. Chrome
D. Internet Explorer
Solution: Opera, firefox, chrome and internet explorer are different kinds of browsers. Out of which audio file format named wav is not supported by internet explorer.
Q: In HTML Audio/Video DOM __________ sets or returns the volume of the audio/video.
A. src
B. volume controls
C. volume
D. video Tracks
Solution: Src attribute gives current source of audio/video element. The videoTrack list is returned representing available video tracks by video track attribute. Volume attribute sets the current volume of video/audio.
Q: Which of the following attribute adds audio controls, like play, pause, and volume?
A. audio
B. controls
C. source
D. src
Solution: The audio attribute defines sound, such as music or other audio streams. Source attribute defines multiple media resources for media elements, such as 
Q: In HTML Audio/Video DOM __________ sets or returns whether the audio/video should start playing as soon as it is loaded.
A. controls
B. audio Tracks
C. autoplay
D. currentSrc
Solution: Control attribute is used to set whether audio/video should display controls. AudioTrack list representing audio tracks is set by audio track. The autoplay attribute is a boolean attribute. When present, the audio will automatically start playing as soon as it can do so without stopping. A current src of audio/video is returned by currentSrc.
Q: In HTML Audio/Video DOM __________ sets or returns whether the audio/video should start over again when finished.
A. loop
B. autoplay
C. seeking
D. played
Solution: The loop attribute is a boolean attribute. When present, it specifies that the audio will start over again, every time it is finished. With autoplay, it ensures whether video/audio should play immediately after loading page. Seeking returns whether user is currently seeking video/audio. Timeranges representing played parts of audio/video is set by played attribute.
Q: In HTML Audio/Video DOM __________ returns a MediaError object representing the error state of the audio/video.
A. ended
B. seeking
C. error
D. mediaGroup
Solution: Seeking returns whether user is currently seeking video/audio. Ended attribute fires up when current playing playlist is finished. The error property returns a MediaError object. The MediaError object has a code property containing the error state of the audio/video. The group to which audio/video belongs is returned by mediaGroup.
Q: In HTML Audio/Video DOM __________ returns a TextTrackList object representing the available text tracks.
A. readyState
B. startDate
C. videoTracks
D. textTracks
Solution: The current ready state of video/audio is set by readyState. StartDate sets current date representing current time offsets. VideoTrack returns video track list representing available video tracks. The textTracks property returns a TextTrackList object. The TextTrackList object represents the available text tracks for the audio/video. Each available text track is represented by an TextTrack Object.

You Have Score    /10