ExamBank Scot · Higher Computing Science question bank · All Higher Computing Science questions
16 marks · Entity-relationship modelling
Draw an entity relationship diagram to show the relationships between the four tables. A query is used to generate the report shown below. This report is displayed on a customer’s smartphone once a booking is confirmed. State the tables and fields needed to generate the above report. State the search criteria that would identify this booking. The following is an extract from the source code used to generate Super Taxi’s homepage. <!DOCTYPE html> <html> <head> <title>Super Taxi</title> </head> <body> <h1 id=“welcome” onmouseover=“mouseOver()” onmouseout=“mouseOut()”>Welcome to Super Taxi</h1> <script> function mouseOver() { document.getElementById(“welcome”).style.color = “yellow”; } function mouseOut() { document.getElementById(“welcome”).style.color = “black”; } </script> </body> </html> Explain, making reference to the code shown above, what happens when a user places the mouse pointer over the heading “Welcome to Super Taxi”. Meta tags can be used in this webpage. Insert the missing components of the following meta tag: <meta ______________=”keywords” _____________=”super, taxi”> Search engine providers realised that web developers were placing large numbers of keywords in meta tags to improve a website’s ranking in search results. This means that meta tags are often ignored by search engines. Describe two techniques that search engines use to ensure more relevant results are returned. The following line of code is added to the homepage: <link rel=“stylesheet” type= “text/css” href= “superstyle.css”> State the section of the code in which this line should be placed. Describe the effect on efficiency of web page load times when comparing external and internal CSS. Super Taxi allows users to book taxis from their smartphones. Super Taxi uses a relational database to keep a record of their cars, drivers, bookings and customers. Each driver can only drive one car but the same car can be used by more than one driver. The cost is set at the time of booking. Car Driver Booking Customer Registration Driver ID Booking ID Customer ID Make First Name From Known As Model Surname To Card Number Licence Expires Mobile Cost Expiry Date Registration* Driver ID* Authorisation Code Customer ID*
1 mark for each correct relationship. Maximum of 3 marks Customer.Known As Booking.Booking ID Booking.From Booking.To Booking.Cost Car.Registration OR Driver.Registration 1 mark for three correct tables (Customer, Booking, Car OR Driver for registration) 1 mark for at least five correct fields 1 mark for relating fields to tables Do not penalise for additional field that could refer to image (Booking.)Booking ID=12345 • The onmouseover event is triggered • executing the mouseOver function • changing the (style) colour to yellow(of the phrase “Welcome to Super Taxi” /heading) 1 mark for any bullet – maximum 2 marks No mark for third bullet if changing just the word “Welcome” A description of moving the mouse without referring to event or function in the first two bullets does not get a mark <meta name="keywords" content="super,taxi,….."> 1 mark for name 1 mark content • Search (index) for key words in o title tags o alt tags o body/page/content o URL • Checking links to the site from other sites • Data analytics eg hit rate, location by proximity, filters, prominent social media presence • Algorithms to determine relevance 1 mark for any bullet – maximum 2 marks Answers referring to key words must specify location of key words. Head section of the HTML • External more efficient as loaded once/cached but used by several pages • Internal loaded every time a page is accessed 1 mark for a comparison of loaded “once vs multiple times” without reference to pages.
Previous question: Higher Computing Science 2017 Question 10 (CfE)
Next question: Higher Computing Science 2017 Question 12 (CfE)