Higher Computing Science Model Paper
Higher Computing Science Model Paper
WITH ANSWERS
Model Question Papers and Answers © Hodder Gibson. All rights reserved.
Hodder Gibson would like to thank SQA for use of any past exam questions that may have been used in model papers, whether
amended or in original form. Hodder Gibson is grateful for the use of the following:
Bill Bertram (Own work) [CC BY-SA 2.5 (http://creativecommons.org/licenses/by-sa/2.5)], via WikimediaCommons
(http://upload.wikimedia.org/wikipedia/commons/3/33/ZXSpectrum48k.jpg) (Model Paper 1 Section 2 page 8);
unclepodger/Fotolia (Model Paper 1 Section 2 page 10);
Boris Ryaposov/Fotolia (Model Paper 1 Section 2 page 11);
B. Wylezich/Fotolia (Model Paper 1 Section 2 page 14);
Luap Vision/Fotolia (Model Paper 1 Section 2 page 19);
Luap Vision/Fotolia (Model Paper 1 Section 2 page 19);
Africa Studio/Fotolia (Model Paper 1 Section 2 page 19);
roger ashford/Fotolia (Model Paper 1 Section 2 page 19);
Elnur/Fotolia (Model Paper 1 Section 2 page 19);
Ivonne Wierink/Fotolia (Model Paper 1 Section 2 page 19);
Can Yesil/Fotolia (Model Paper 1 Section 2 page 21);
Nataly-Nete/Fotolia (Model Paper 1 Section 2 page 21);
H National
Qualifications
MODEL PAPER 1
Computing Science
Duration — 2 hours
Date of birth
Day Month Year Scottish candidate number
D D MM Y Y
Total marks — 90
SECTION 1 — 20 marks
Attempt ALL questions.
SECTION 2 — 70 marks
Attempt ALL questions.
Show all workings.
Write your answers clearly in the spaces provided in this booklet. Additional space for answers
is provided at the end of this booket. If you use this space you must clearly identify the
question number you are attempting.
Use blue or black ink.
Before leaving the examination room you must give this booklet to the Invigilator; if you do
not, you may lose all the marks for this paper.
MARKS DO NOT
WRITE IN
SECTION 1 — 20 marks THIS
MARGIN
1. Artificial intelligence programs may consist of lists of facts and rules that are
written in no set order.
State the type of programming language that is being described. 1
2. Describe one activity that the passing of the Communications Act in 2003
made illegal. 1
3. The following HTML head section is written for a page in a cooking website.
<head>
<link rel=”stylesheet” type=”text/css” href=”recipes.css”>
<title>Chicken Recipes</title>
<meta name=”keywords” content=”Cooking”>
</head>
(a) The above HTML shows that an external style sheet is being used to
format the web page. State one advantage gained through using an
external style sheet in preference to internal styles. 1
(b) If a user entered “Chicken Recipes” into a search engine this page
would not be included in the results. Suggest a solution to this problem. 2
Page two
© 2016 Hodder & Stoughton
MARKS DO NOT
WRITE IN
5. A school pupil writes a small computer program to bombard a web server THIS
MARGIN
with requests for a particular web page. This has the effect of preventing
other users from accessing the website.
(b) Explain why bombarding a web server may deny access to legitimate
users. 1
6. Describe how keylogging software poses a security threat to users who are
unaware that the program is running on their computer. 2
Page three
© 2016 Hodder & Stoughton
MARKS DO NOT
WRITE IN
8. The algorithm below is implemented using a procedural programming THIS
MARGIN
language.
Line 1. SET total TO 0
Line 2. SET noOfWeights TO 0
Line 3. SET weight TO 0
Line 4. SEND “How many weights do you wish to add up” TO DISPLAY
Line 5. RECEIVE noOfWeights FROM (INTEGER) KEYBOARD
Line 6. REPEAT noOfWeights TIMES
Line 7. SEND “Please enter a weight” TO DISPLAY
Line 8. RECEIVE weight FROM (REAL) KEYBOARD
Line 9. SET total TO total + weight
Line 10. END REPEAT
Line 11. SEND “Your total weight is” TO DISPLAY
Line 12. SEND total TO DISPLAY
(a) When prompted the user of the program enters the values 4, 3, 7.5,
1.5, 5.
Following this input, state what the output would be from line 12? 1
(b) State the data type that should be declared when initialising the weight
variable. 1
Page four
© 2016 Hodder & Stoughton
MARKS DO NOT
WRITE IN
10. A design is drawn showing two subroutines which are called one after the THIS
MARGIN
other.
(b) If the design was implemented, without parameter passing and using
local variables, what would be the actual output? 2
11. Explain why increasing the amount of cache memory in a computer system
improves processing performance. 1
Page five
© 2016 Hodder & Stoughton
MARKS DO NOT
WRITE IN
SECTION 2 — 70 marks THIS
MARGIN
(a) Explain why the above pseudocode indicates that two arrays will be
required when the design is implemented. 1
(ii) Describe, using multiple examples of each type of input, how you
would comprehensively test your refinement of line 3. 3
Page six
© 2016 Hodder & Stoughton
MARKS DO NOT
WRITE IN
1. (continued) THIS
MARGIN
(c) The following function has been used within the program. The
pseudocode for this function is shown below.
Line 1.
STRING FUNCTION analysis (biscuitCaloriesArray,
biscuitNamesArray)
Line 2. Set maxCalories TO biscuitCaloriesArray[0]
Line 3. Set maxName TO biscuitNamesArray[0]
Line 4.
FOR counter FROM 1 TO
Length(biscuitCaloriesArray)
Line 5. IF biscuitCaloriesArray[counter] >
maxCalories THEN
Line 6. SET maxCalories TO
biscuitCaloriesArray[counter]
Line 7. SET maxName TO
biscuitNamesArray[counter]
Line 8. END IF
Line 9. END FOR
Line 10. RETURN maxName
Line 11. END FUNCTION
(i) The two arrays used in lines 2 and 3 are passed as parameters into
the function. State whether the parameters should be passed by
value or by reference and explain your answer. 2
Total marks 10
Page seven
© 2016 Hodder & Stoughton
MARKS DO NOT
WRITE IN
2. In 1982, for his 12th birthday, Greg was given a Sinclair ZX Spectrum THIS
MARGIN
computer.
(a) Like most computers from the 1980s, the ZX Spectrum had no internal
backing storage.
(i) State where the operating system would have been stored? 1
Page eight
© 2016 Hodder & Stoughton
MARKS DO NOT
WRITE IN
2. (continued) THIS
MARGIN
(c) Greg’s current computer has a clock speed of 3.5GHz, 1000 times faster
than that of the ZX Spectrum. When Greg researches the difference
between the raw processing power of his current PC and the Spectrum
he finds that his PC is significantly more than 1000 times faster at
processing data than the Spectrum.
With reference to differences in computer’s architecture (other than
clock speed), state two reasons why this is the case. 2
(d) While browsing the world wide web, Greg recently discovered and
downloaded a ZX Spectrum emulator which allows him to play all his old
games.
Discuss two possible hardware issues that the emulator program would
have to compensate for when running old spectrum programs on much
newer hardware. 2
Page nine
© 2016 Hodder & Stoughton
MARKS DO NOT
WRITE IN
2. (continued) THIS
MARGIN
A 48Kb game took 5 minutes to load from tape. The sounds were saved
in mono at a sampling depth of 1 bit. Calculate the sampling frequency
of the sound files used by the Spectrum? Show your working. 2
Total marks 10
Page ten
© 2016 Hodder & Stoughton
MARKS DO NOT
WRITE IN
3. Rory is studying app development at college. As part of a project assignment THIS
MARGIN
he creates an app for the members of his local table tennis club. The app
will allow its users to store match results, arrange matches with other users
and discuss training techniques.
(a) He uses a graphics package to create a design for the home screen of his
app.
(i) State the type of user Rory is designing the app for. Justify your
answer. 2
Page eleven
© 2016 Hodder & Stoughton
MARKS DO NOT
WRITE IN
3. (a) (continued) THIS
MARGIN
(ii) Describe why the accuracy of the input device being used will be a
factor in the design of the user interface. 1
(iii) Describe one way the current interface design could be improved. 1
(b) During the later stages of development, the table tennis app is Beta
tested.
Describe one attribute of Beta testing. 1
(c) Apps require storage for both program and data files.
(i) Explain why solid state storage is used in mobile devices. 1
Page twelve
© 2016 Hodder & Stoughton
MARKS DO NOT
WRITE IN
3. (continued) THIS
MARGIN
(d) A later version of the completed app allows users to view current
rankings for every user.
(i) Explain why the rankings must be stored remotely from the app. 1
(ii) Describe how this feature could contribute to the growth of online
communities. 1
Total marks 9
Page thirteen
© 2016 Hodder & Stoughton
MARKS DO NOT
WRITE IN
4. A computer system collects data from THIS
MARGIN
a sensor attached to a wind turbine.
(b) State the one possible function of the interface required to connect the
sensor to the computer. 1
Page fourteen
© 2016 Hodder & Stoughton
MARKS DO NOT
WRITE IN
4. (c) (continued) THIS
MARGIN
1.
2.
3.
(e) The wind farm where the turbine is situated uses a security camera to
monitor the site. The camera records compressed video using the
following settings: 8 bit colour, 460×320pixel, 2 fps, 50% compression
ratio.
Calculate the storage requirements for 1 minute of video. Show your
working. 4
Total marks 12
Page fifteen
© 2016 Hodder & Stoughton
MARKS DO NOT
WRITE IN
5. As a superhero, Catman must keep the manufacture of his crime fighting THIS
MARGIN
gadgets a secret.
The gadgets are manufactured as follows.
Each individual component is manufactured by a different company.
A technician employed by Catman’s company is given 5 of the components to
assemble into a sub unit. A sub unit is only a part of any complete gadget.
Catman himself uses several sub units to assemble each finished gadget.
A relational database with four tables is created to track the manufacture of
the each sub unit.
The tables and field names are shown below.
(b) Explain why the “Sub Units Name” field may be unsuitable as a Primary
Key for the Sub Unit Table. 1
(c) Catman uses the following form to enter data for each new technician.
Technician’s Detail
Forename Jack
Gender Male
Employee Number 34
Address 99 Alfred Drive
Forfar
Telephone Number 01393 638645
Surname Denton
Page sixteen
© 2016 Hodder & Stoughton
MARKS DO NOT
WRITE IN
5. (c) (continued) THIS
MARGIN
Currently each new data item is typed in by the user. Describe two ways
to improve the usability of this form. 2
(d) Catman suspects that one of the female technicians has leaked
information about one of the sub units. He creates a report detailing all
the female technicians that have assembled the “battery pack for
grapple hook” sub unit.
Forename Surname
Sylvia Trench
Tatiana Romanova
Jill Masterton
Domino Derval
Rosie Carver
Describe how Catman could use the database software to produce the
above list. 5
Page seventeen
© 2016 Hodder & Stoughton
MARKS DO NOT
WRITE IN
5. (continued) THIS
MARGIN
Total marks 10
Page eighteen
© 2016 Hodder & Stoughton
MARKS DO NOT
WRITE IN
6. Signella manufacture toys for dogs. Their website contains dynamic web THIS
MARGIN
pages that display products from their catalogue.
houndz.co.uk Search
(a) When the customer selects one of the filters shown on the left (for
example price between £5 and £7.50) the Signella website uses server-
side scripts to extract the required information from a database, create
a new page and return the page to the users browser.
(i) State two reasons why generating the web pages using server-side
scripts benefits the user of the website. 2
(b) As shown in the above image, Signella’s website makes use of multi-
level navigation.
Explain how multi-level navigation can aid the accessibility of a website. 1
Page nineteen
© 2016 Hodder & Stoughton
MARKS DO NOT
WRITE IN
6. (continued) THIS
MARGIN
(ii) Create a CSS rule that will display a blue border, 1 pixel wide
around each the image. The rule should also include a command
to create a 20 pixel wide blank area around the image. 2
(d) To protect against data loss, Signella back up their database to a second
hard disk drive installed within their web server.
Explain why copying data to a second backing storage device within the
same computer is not a suitable backup strategy. 1
Total marks 10
Page twenty
© 2016 Hodder & Stoughton
MARKS DO NOT
WRITE IN
7. Smart Applications Ltd are a software company who specialise in creating THIS
MARGIN
mobile phone applications for client companies. They have been contracted
by Fitboss Gyms to create a mobile phone application that will track the
distance its users walk during the course of a day.
DISTANCE CALORIES
1.5 140
MILES kCal
STOP PAUSE
(a) Smart Applications Ltd develop each new mobile phone app for three
different mobile operating systems. Explain why multi-platform
development may provide their client with a competitive economic
advantage. 1
Page twenty-one
© 2016 Hodder & Stoughton
MARKS DO NOT
WRITE IN
7. (c) (continued) THIS
MARGIN
(d) Smart Applications Ltd are asked by their client to ensure that the data
created and accessed by the app is secure.
Describe how biometrics and encryption could be used in the app to
secure the users data. 2
Total marks 10
Page twenty-two
© 2016 Hodder & Stoughton
MARKS DO NOT
WRITE IN
ADDITIONAL SPACE FOR ANSWERS THIS
MARGIN
Page twenty-three
© 2016 Hodder & Stoughton
Page twenty-four
© 2016 Hodder & Stoughton
Max Max
Question Expected Answer(s) Question Expected Answer(s)
mark mark
(b) Maximum Installable Memory = 2 (ii) Any one from the following: 1
2address bus width * data bus width • If an object is too small, the accuracy
Maximum Installable Memory = of the touchscreen may make it
216 * 1 byte (1 mark) difficult to select the object
Maximum Installable Memory = • The accuracy of the touchscreen
65,536 bytes will determine the minimum size of
screen objects
Maximum Installable Memory =
(iii) Any one from the following: 1
64Kb (1 mark)
(c) Any two from the following: 2 • Proper names could be given to the
menus instead of single letters
• The newer PC will have wider buses • The icons on the menu screen could
allowing for greater throughput of be increased in size
data • Contrasting colours could be used to
• The newer PC may have a multi-core make the objects stand out more
processor
(b) Any one from the following: 1
• The newer PC may have cache
memory • Beta testing may be undertaken by
• The newer PC’s processor will have persons outwith the programming
an increased number of internal team
registers • Beta testing will involve use of a
(d) Any two from the following: 2 complete (but not bug-free) product
• Beta testing will test how software
• The emulator will have to ensure that runs on hardware other than the
the games’ instructions are processed hardware the software was written on
at the same speed of the original
(c) (i) Low power consumption preserves 1
hardware
battery life or small physical size fits
• The emulator will have to
easily inside small portable devices.
compensate for the differences in the
colour depth of the game’s graphics (ii) Any two from: 2
and a modern high-colour monitor • Storage devices are reducing in size
when displaying the old game • More data can be stored in an
• The emulator will have to increasingly smaller physical space
compensate for the differences in low • The cost per unit of storage is
resolution of the game’s graphics and continually reducing
a modern high-colour monitor when • New storage devices may have
displaying the old game reduced power requirements
• The emulator will have to allow for
the use of modern input devices (d) (i) Each user has their own rank. To share
(mouse) that did not exist when to this with every other user, central
older computer was in use storage is required.
(e) Use the formula for working out the size 2 (ii) Rory’s app would allow a means to 1
of a sound file, reorder the equation to learn more about table tennis players
calculate the sampling frequency. encouraging the growth of the online
community.
sampling frequency * sampling depth *
4. (a) The number would be stored as two 2
channels * length (secs) = size of file
values, a mantissa and an exponent
sampling frequency * 1bit * 1 * (5*60) (1 mark) with a section of the 32bits
secs = 48Kb (1 mark) being allocated to each value (1 mark).
sampling frequency = (48*1024*8 bits) / Note 1 − If the answer given suggests
(1bit*1*300secs) (1 mark) that 2 *32 bits (double precision) is
sampling frequency = 393216 bits / used, this should be accepted.
300bits per sec Note 2 − this answer could also be
sampling frequency = 1310.72 Hz written as an example. 24 of the
32 bits could be used to store the
3. (a) (i) The app is being designed for novice 1
mantissa with the remaining 8 bits
users as it has a simple, easy-to-use
being allocated to the storage of the
layout.
exponent.
(b) Any two from the following: 1
• Voltage conversion
• Analogue to Digital Conversion
• Compensating for differences in data
transfer rates
• Data format conversion
Max Max
Question Expected Answer(s) Question Expected Answer(s)
mark mark
(c) 1 mark for each correctly identified 3 (c) Any two from the following: 2
error below: • The Gender field should have a
Error 1 − Line 4, should read REPEAT 60 restricted choice (drop down menu
TIMES (1 repeat for each minute in the or radio button) to speed up entry of
hour) data and reduce errors
Error 2 − Line 7, last part should add • The Employee Number field should be
powerReading on to averagePower and generated automatically instead of
not subtract it requiring the user to enter it
• The Surname field should follow the
Error 3 − Line 10, the averagePower Forename field as data is entered
should be written to the file and not faster by a user when it is in a logical
read from it order
(d) Any two from the following: 2 • Length checks could be used to
inform the user when they have
• Development teams can respond
entered invalid data, for example the
quickly to changing customer
telephone number
requirements
• Continual contact with customer (d) Create a query (1 mark) with the 5
ensures that the development team following fields:
are not guessing the wishes of the Sub Unit Table.Sub Units Name and
client criteria = “battery pack for grapple
• Testing is completed as the project hook” (1 mark).
progresses so errors are found earlier
• Projects are often more enjoyable as Technicians Table.Forname (1 mark).
regular goals are reached Technicians Table.Surname (1 mark).
• Software is produced faster giving Create a report using the Forname and
economic benefits to client and Surname fields from the query (1 mark).
developer
(e) Lossless compression 1
(e) Use the formula below to calculate the 4
uncompressed size of a video file. 6. (a) (i) Any two from the following: 2