ExamBank Scot · N5 Computing Science question bank · All N5 Computing Science questions
10 marks · Website analysis
The following content is required. The website will have pages about different types of foxes where users can view pictures and listen to the sounds made by each fox. The charity logo needs to be visible at the top of each page. Identify a functional requirement of the above website. All the sounds used on the website are stored in a folder called ‘media’ in the following locations. > > website > vulpes > website > vulpes > media # Name Name > media arcticFoxCry.mp3 fennelFoxCry.mp3 arcticFox.html islandFoxCry.mp3 fennecFox.html redFoxCry.mp3 home.html redFox.html swiftFoxCry.mp3 Using this structure, complete the following code to play the sound ‘redFoxCry.mp3’ when the play button is pressed on the redFox web page. <_____________ controls> <source src = "__________________________________________" type= "audio/mpeg" > </____________ > Upon testing, the fox sounds were found to take too long to download. Describe how the file size can be reduced without altering the length of the sound. When the cursor moves over an image of the fox it changes the picture from one of a fox in a sitting down position to one of the fox lying down. Identify the language and the event used to implement this. Language Event Part of the HTML and CSS for the ‘Contact us’ page for the Vulpes website is shown below. contactUs.html <html> <head> <link rel="stylesheet" type="text/css" href="Styles.css"> </head> <body> <img src="logo.png"> <a href="home.html">Back to home page</a> <div id="titleSection"> <h1 style="text-align:center">Vulpes</h1> <p>Contact us</p> </div> <div> <p>We're here to help, whether to answer a fox question or assist you to find more information about foxes. Contact us using one of the methods below</p> </div> <div> <h1>Methods</h1> <ol> <li>Phone Number – 07700900833</li> <li>Email – info@vulpes.uk</li> <li>Address – Currently our offices are closed</li> </ol> </div> … Styles.css body{background-color:violet;} #titleSection{text-align: right; background-color:yellow; } div{text-align:left;} h1{text-align:right; } Draw how the web page will look when viewed in a browser. Some of the content has already been added. Back to home page We’re here to help, whether to answer a fox question or assist you to find more information about foxes. Contact us using one of the methods below. 1. Phone Number - 07700900833 2. Email - info@vulpes.uk 3. Address - Currently our offices are closed The Vulpes fox charity would like a website to increase public knowledge of foxes.
One mark for any one from: The website must • display the charity logo • play sounds of foxes • display pictures of foxes Answer must refer to scenario. One mark for each from: • audio opening and closing tags • pathname • filename and type <audio controls> <source src= "media/redFoxCry.mp3" type="audio/mpeg"> </audio> The sample rate/frequency of the file may be reduced Only accept compression if the answer indicates that the mp3 file is being further compressed. One mark each for: • JavaScript • (on) mouseover One mark each of the following in the correct positions: • “Vulpes” • “Contact Us” • “Methods” Refer to diagram below for positions.