Skip to main content

Fundamentals of Front End Development MCQs with Answers

Practice important Fundamentals of Front End Development MCQs with answers and explanations.

Chapter: 138
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
Correct Answer: B
Chapter: 138
Q1562:
What method checks if the browser can play a specific audio/video type?
A. canPlayType
B. play
C. pause
D. load
Correct Answer: A
Chapter: 139
Q1563:
What was required to play audio files on a web page before HTML5?
A. HTML5 <audio> element
B. JavaScript
C. Flash plug-in
D. MP3 file
Correct Answer: C
Chapter: 139
Q1564:
Which HTML5 element is used to embed audio in a web page?
A. <video>
B. <embed>
C. <audio>
D. <source>
Correct Answer: C
Chapter: 139
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
Correct Answer: B
Chapter: 139
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
Correct Answer: C
Chapter: 139
Q1567:
What does the 'volume' property control in HTML5 audio?
A. Playback position
B. File format
C. Playback speed
D. Audio volume
Correct Answer: D
Chapter: 139
Q1568:
What event fires when an audio file has finished playing?
A. ended
B. error
C. pause
D. play
Correct Answer: A
Chapter: 139
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
Correct Answer: C
Chapter: 139
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
Correct Answer: A
Chapter: 140
Q1571:
What are helper applications also called?
A. Widgets
B. Extensions
C. Plug-ins
D. Add-ons
Correct Answer: C
Chapter: 140
Q1572:
Which tag is used to add plug-ins to web pages?
A. <iframe>
B. <object>
C. <script>
D. <embed>
Correct Answer: B
Chapter: 140
Q1573:
What is a common use of plug-ins?
A. Displaying maps
B. Creating animations
C. Validating HTML
D. Editing CSS
Correct Answer: A
Chapter: 140
Q1574:
What element is supported by all browsers and defines an embedded object?
A. <iframe>
B. <embed>
C. <object>
D. <video>
Correct Answer: C
Chapter: 140
Q1575:
Which HTML element was supported in browsers before HTML5 but is not part of the HTML specification before HTML5?
A. <object>
B. <embed>
C. <frame>
D. <video>
Correct Answer: B
Chapter: 140
Q1576:
Fill in the blank: The <embed> element can be used to define an embedded object within an HTML document, but it’s not a part of the HTML specification before ______.
A. HTML4
B. HTML5
C. XHTML
D. HTML3
Correct Answer: B
Chapter: 140
Q1577:
Fill in the blank: To display an image using the <object> element, you would use the attribute ______.
A. src
B. data
C. href
D. type
Correct Answer: B
Chapter: 140
Q1578:
Which attribute specifies the width of an embedded object in the <object> element?
A. height
B. src
C. data
D. width
Correct Answer: D
Chapter: 140
Q1579:
Fill in the blank: The <object> element can be used to embed objects such as ______.
A. JavaScript
B. Flash files
C. CSS styles
D. PHP scripts
Correct Answer: B
Chapter: 141
Q1580:
What does the HTML Geolocation API help to determine?
A. User’s current time
B. User’s current position
C. User’s current IP address
D. User’s current browser version
Correct Answer: B

Test Your Knowledge

Take a timed quiz on Fundamentals of Front End Development

🚀 Start Quiz Now