ExamBank Scot · N5 Computing Science question bank · All N5 Computing Science questions

N5 Computing Science 2024 Question 19

9 marks · Media file formats and file size

Gone Away travel have added flags to the images on their home page. These contain a white background that must be removed. State the reason why a PNG file format would be more suitable than a JPEG file format. The following HTML and CSS is for a web page containing information about a trip to Naples. style.css body{ background-color:lightblue; } img{ height:200px; width:250px; } h1{ font-family:Helvetica; font-size:14px; } div{ background-color:white; } #city{ text-align:center; font-size:20px; } p{ text-align:center; font-size:12px; } naples.html <!doctype HTML> <html> <head> <title>Gone Away Travel - Naples</title> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <h1>Gone Away Travel</h1> <h1 id="city">Naples</h1> <p>Come visit the lovely Naples, the third largest city in Italy. Home to the best pizza in the world. View our pictures below to help make up your mind.</p> <div> <img src="Media/naples1.png"> <p class="description">Stunning view of the Naples bay</p> </div> <div> <img src="Media/naples2.png"> <p class="description">One of the many food markets in Naples</p> </div> </body> </html> The description of each photograph is to be right aligned, use Arial font and be the same size as the other paragraphs on the page. Write a single CSS rule that would only style the descriptions. { } The hyperlink below can be found on the Naples information page. <a href="www.NaplesCity.co.uk">Official Naples city guide</a> State the type of addressing used in the hyperlink. A video tour of Naples will be added to the web page. All media files for the website are stored in a folder called ‘Media’ as shown below. > website > website > Media Name > copenhagen.html egypt.html naples1 naples2 naplesTour.mp4 goneawayhomepage.html naples.html Media Using this structure, complete the following code so that the video naplesTour.mp4 is displayed on the naples.html page with the following dimensions. 300 px naplesTour.mp4 350 px <video controls> <source src= type = "video/mp4"> </video> Gone Away Travel would like to improve their website based on user feedback. A sample of the feedback is shown below. ‘It would be fun to listen to clips of useful local phrases for each holiday location.’ ‘I felt really bored while using your website. Booking a holiday should be fun.’ ‘I got stuck on the Naples page!’ Identify one functional requirement that should be added to the website based on the feedback above. Gone Away travel is a holiday booking website. Below is the home page for the website. https://www.goneawaytravel.co.uk Gone Away Travel Naples Copenhagen Egypt

Marking scheme

Transparent background • .description selector • text-align:right • font-family:Arial (font-size:12px) If candidate changes font size from 12 do not award bullet 3 absolute • width="350" height="300" • (./)Media/ • naplesTour.mp4 Path should not include anything before (./)Media/ eg website <video width="350" height="300" controls> <source src="Media/naplesTour.mp4" type="video/mp4"> </video> Quotes not required in code (The website should..) • play sound/video of local phrases • add interactivity.. with an example • include hyperlink to.. an destination e.g. home page Award 1 mark for any one bullet

Previous question: N5 Computing Science 2024 Question 18

Next question: N5 Computing Science 2024 Question 20