Fundamentals of Front End Development MCQs with Answers
Practice important Fundamentals of Front End Development MCQs with answers and explanations.
Multiple Choice Questions
Q1561: Fill in the blank: The error event fires when ______.
- A: The audio/video starts playing
- B: An error occurs during loading of the audio/video
- C: The audio/video has ended
- D: The audio/video is paused
View Answer
B
Q1562: What method checks if the browser can play a specific audio/video type?
- A: canPlayType
- B: play
- C: pause
- D: load
View Answer
A
Q1563: What was required to play audio files on a web page before HTML5?
- A: HTML5
- B: JavaScript
- C: Flash plug-in
- D: MP3 file
View Answer
C
Q1564: Which HTML5 element is used to embed audio in a web page?
- A:
- B:
- C:
- D:
View Answer
C
Q1565: What file formats are currently supported for the <audio> element?
- A: MP4, Ogg, WAV
- B: MP3, WAV, Ogg
- C: MP3, WMA, FLV
- D: MP4, MP3, WAV
View Answer
B
Q1566: What does the 'play()' method do in HTML5 audio?
- A: Pauses the audio
- B: Re-loads the audio
- C: Starts playing the audio
- D: Stops the audio
View Answer
C
Q1567: What does the 'volume' property control in HTML5 audio?
- A: Playback position
- B: File format
- C: Playback speed
- D: Audio volume
View Answer
D
Q1568: What event fires when an audio file has finished playing?
- A: ended
- B: error
- C: pause
- D: play
View Answer
A
Q1569: Fill in the blank: The 'seeked' event fires when the user is finished ______.
- A: loading
- B: buffering
- C: moving/skipping to a new position
- D: pausing
View Answer
C
Q1570: Fill in the blank: The 'canPlayType()' method checks if the browser can play the specified ______.
- A: audio/video type
- B: file format
- C: codec
- D: text track
View Answer
A