A railway heritage group is adding a video to its web page. Fig. 1 shows the required player and the available media files. Visitors use different browsers,...

Assessment: Computer Science 9210 | Paper 2 Mock 01 | Concepts and principles of computer science Subject: Computer Science - 9210

Question 1 Report

A railway heritage group is adding a video to its web page. Fig. 1 shows the required player and the available media files. Visitors use different browsers, so the HTML must offer more than one video format and must show controls.

steamtrain.mp4steamtrain.webmFig. 1: video player and files available

(a) State the HTML element used to embed the player. [1]
(b) Give the attribute that displays play and volume controls. [1]
(c) Give two source elements for the files shown. [4]
(d) Explain why two file formats are supplied. [2]

Answer Details

(a) The player is embedded with a <video> element. [1]

(b) The attribute is controls. [1] It displays built-in controls such as play and volume controls.

(c) The two source elements are:

<source src="steamtrain.mp4" type="video/mp4">
<source src="steamtrain.webm" type="video/webm">

Each complete source element earns [2], including the correct file and MIME type.

(d) Browsers may not support the same video formats. [1] Providing an alternative format allows more visitors to play the video. [1]

Download The App On Google Playstore

Everything you need to excel in your exams

Green Bridge CBT Mobile App
Personalized AI Learning Chat Assistant
200,000+ Exam Questions Across IGCSE, JAMB, WAEC & NECO
Over 3,900 Lesson Notes
Offline Support - Learn Anytime, Anywhere
Green Bridge Timetable
Literature Summaries & Potential Questions
Track Your Performance & Progress
In-depth Explanations for Comprehensive Learning