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

N5 Computing Science 2021 Question 21

12 marks · Cascading Style Sheets

Draw how the home page will look when viewed in a browser. Some of the content has already been added. One of the implemented pages from MoveIt’s website is shown below. http://MoveItEstateAgents.co.uk/rosieview The following code is used to create the page. … <h3> Features of the flat </h3> <ul> <li> Ground floor flat </li> <li> 2 bedrooms with ensuite </li> <li> Kitchen </li> <li> Generous living area </li> </ul> <a href="floorplan.html"> See floor plan </a> <h3> Contact Us: </h3> <p class="contactInfo"> Agent: G Smith </p> <p class="contactInfo"> Ref: AS1289 </p> <p class="contactInfo"> Phone: 01355 876242 </p> … Write the single CSS rule that could be used to centre align the three paragraphs underneath ‘Contact Us’, ensuring the size of the font is 12. { } State the type of addressing in the hyperlink that is used to take the user to the floor plan page. The page includes a feature that changes the image of the flat to the price of the flat when the user moves the cursor over the image. http://MoveItEstateAgents.co.uk/rosieview http://MoveItEstateAgents.co.uk/rosieview State the language used to implement this feature. State the type of event that would be used in this feature. The website currently includes audio descriptions of each flat. These audio clips are stored using a compressed file format. State one benefit to the end‑user of the site using a compressed format for these audio files. When recording the audio descriptions, a choice of sample rates can be used. Sample rate A Sample rate B 800 Hz 44 kHz State one advantage and one disadvantage of using Sample rate B when recording and storing the sound file rather than Sample rate A. Advantage of Sample rate B Disadvantage of Sample rate B MoveIt estate agency is developing a new website. The following code is used to create the home page for the estate agent’s website. The home page includes a heading, a video, a welcome message and the company logo shown below. MI … <style> h1 {text-align:right;font-size:24pt} .pageText {text-align:left;font-size:12pt} </style> … <h1 class="pageText"> MoveIt Estate Agents </h1> <video width="400" height="300" controls> <source src="intro.mp4"> </video> <p class="pageText"> Welcome to MoveIt Estate Agents </p> <img src="logo.jpg" width="200" height="100"> …

Marking scheme

One mark each for • heading and paragraph on left of page above and below video • heading and paragraph text roughly the same size • logo image below paragraph drawn about half the width of the video. Be lenient regarding: • the matching text size of the heading and paragraph • the size of the logo in comparison to the video. Sample answer: MoveIt Estate Agents Welcome to MoveIt Estate Agents One mark for each bullet included in single CSS rule. • use of class name in paragraph element (.contactInfo) of supplied code • text centre aligned • font size 12 Example answer .contactInfo { text-align: center; font-size:12pt } Relative JavaScript onMouseOver Mouse over faster page load Do not allow ‘less storage required’ as this would be an advantage for the developer/client not the end- user. One mark each for • Advantage - better sound quality • Disadvantage - larger file size

Previous question: N5 Computing Science 2021 Question 20

Next question: N5 Computing Science 2022 Question 1