Mi NH Computing-Science Mi 2022
Mi NH Computing-Science Mi 2022
Qualifications
2022
Higher
These marking instructions have been prepared by examination teams for use by SQA appointed markers
when marking external course assessments.
The information in this document may be reproduced in support of SQA qualifications only on a non-
commercial basis. If it is reproduced, SQA must be clearly acknowledged as the source. If it is to be
reproduced for any other purpose, written permission must be obtained from permissions@sqa.org.uk.
General marking principles for Higher Computing Science
This information is provided to help you understand the general principles you must apply when
marking candidate responses to questions in this paper. These principles must be read in
conjunction with the detailed marking instructions, which identify the key features required in
candidate responses.
(a) Marks for each candidate response must always be assigned in line with these general marking
principles and the detailed marking instructions for this assessment.
(b) Always use positive marking. This means candidates accumulate marks for the demonstration of
relevant skills, knowledge and understanding; marks are not deducted.
(c) If a candidate response is not covered by either the principles or detailed marking instructions,
and you are uncertain how to assess it, you must seek guidance from your team leader.
(d) Award marks regardless of spelling, as long as the meaning is unambiguous. This applies to all
responses, including code.
(e) Award marks as per the detailed marking instructions, regardless of minor syntax errors, if the
intention of the coding is clear.
(f) For questions where candidates are asked to design or write code, a sample response is shown in
the detailed marking instructions. This will not be the only valid response. You must use the
detailed marking instructions and additional guidance to ensure that you consider alternative
approaches and nuances of different programming languages. If in doubt you should refer to your
Team Leader.
(g) If a candidate scores through their entire response to a question and makes a further attempt,
you should only mark the further attempt. If no further attempt is made and the original is
legible, you should mark the original response.
(h) Where an incorrect response is carried forward and used correctly in a following part of the
question, you should give credit for subsequent responses that are correct with regard to the
original error. Candidates should not be penalised more than once for the same error.
(i) Only award marks for a valid response to the question asked. Where candidates are asked to:
• Identify, name, give or state, they need only name or present in brief form.
• describe, they must provide a statement or structure of characteristics and/or features. This
will be more than an outline or a list. It may refer to, for example, a concept, process,
experiment, situation, or facts, in the context of and appropriate to the question. Candidates
must make the same number of factual/appropriate points as there are marks available in the
question.
• explain, they must relate cause and/or effect and/or make relationships between things
clear, in the context of the question or a specific area within the question.
• write code, they must write recognisable code, not prose nor a diagram.
• design, they must use a design technique appropriate to the problem. Award marks as per the
detailed marking instructions, regardless of errors in the exemplification of the technique, if
the intention of the design is clear.
(j) In the marking instructions, if a word is underlined then it is essential; if a word is bracketed()
then it is not essential. Words separated by / are alternatives
page 02
Marking instructions for each question
Max
Question Expected response Additional guidance
mark
1. • -231 OR -2 147 483 648 2 1 mark for each bullet
• 231 – 1 OR 2 147 483 647
Bitmap
page 03
Max
Question Expected response Additional guidance
mark
6. (a) Design does not account for the 1
same score(shortest time).
(b) (i) • record declaration 2 1 mark for each bullet
• 6 appropriate fields within a
record RECORD player IS {STRING uniqueID,
INTEGER score, REAL minutes,
INTEGER speed, INTEGER strength,
INTEGER agility}
page 04
Max
Question Expected response Additional guidance
mark
7. (a) • shots (per hole) >= 1 OR shots (per 2 1 mark for each bullet
game)>=9 Maximum 2 marks
• exactly 9 scores for each player
• number of holes-in-one >=0 OR <=9
• number of holes won is >= 0 OR <=9
Design:
winsA = 0
winsB = 0
loop for 9 holes
if playerAscores()<playerBscores() then
winsA = winsA + 1
else if playerBscores()<playerAscores() then
winsB = winsB + 1
end if
end loop
if winsA>winsB then
display playerAname has won most holes
else if winsB>winA then
display playerBname has won most holes
else if winsA=winsB then
display game is drawn
end if
page 05
Max
Question Expected response Additional guidance
mark
8. (a) • generate hint 2 1 mark for each bullet
• store letters guessed Maximum 2 marks
• check entered letter is correct
• identify/allocate letter to correct Do not award input/output marks.
box
• count number of guesses
• decide if whole word is correct
• check entered letter against stored
letters
hintOne= chosenWord[0]
hintOne= chosenWord[0:1]
hintOne= chosenWord[:1]
hintTwo=chosenWord[random.randInt(
0,len(chosenWord)-1)]
page 06
Section 2 – Database design and development
Max
Question Expected response Additional guidance
mark
9. (a) • (Create a query to) search for the 1 1 mark for any one bullet
contact details for a particular
tutor or student
• (Create a query to) count the
number of tutor sessions on a
particular date
• (Create a query using SUM to)
calculate the total tutor fees that
each staff member has been paid
• (Create a query using MIN) to
calculate the tutor who charges
the lowest hourly rate
• Create/update/delete records to
store details of student, staff and
tutor sessions
(b) 2 1 mark for each correct relationship
page 07
Max
Question Expected response Additional guidance
mark
11. (a) • Referral, Customer 3 1 mark for each bullet
• specialist Like “*Eye Clinic*”
• (AND) referralDate Like In design accept other expressions
"*/04/2022" for like eg =
FROM Customer
page 08
Max
Question Expected response Additional guidance
mark
12. (a) • saleID is able to uniquely identify 1 1 mark for any one bullet
the record
• The primary keys from the other
two tables would not uniquely
identify a car for sale.
• There would be no customer
number or salesPersonRef until a
sale had been made and the
values in a compound key cannot
be left empty.
(b) Field(s) and year, 3 1 mark for each row
calculation(s) min(askingPrice) AS
‘Cheapest Price’
Allow use of minimum in design of
Search criteria year=2017 OR query.
year=2018
AND Sold = ‘No’ Correct syntax is not required in
design.
Grouping
year
WHERE
CarSale.salesPersonRef =
SalesPerson.salesPersonRef
and sold = ‘Yes’;
Sold=’Yes’ could be
established several other
ways e.g. soldPrice is not
null
UPDATE CarSale
SET askingPrice =
askingPrice * 1.10
WHERE mileage <=10000;
Or
SET askingPrice=askingPrice
+askingPrice/10
page 09
Section 3 – Web design and development
Max
Question Expected response Additional guidance
mark
13. A = nav 2 For B accept article/div
B = section
14. • Fields - title,description, type, 4 1 mark for each bullet
start date, end date
• radio buttons/option controls for
Job Type Validation can include * or labels.
• submit button
• required for all fields except end
date
15. (a) • To get to the descendant pages 2 1 mark for each bullet
the user has to navigate through
the previous instructor pages.
• No FAQ page
(b) • form input(s) have no labels 2 1 mark for each bullet
• No obvious navigation structure/
navbar/orphan page
(c) • h1,h2,h3 grouping selector 2 1 mark for each bullet
• h2 with 10px padding rule
h1,h2,h3 {font-family:
Verdana; text-align:
center;}
h2 {padding: 10;}
or h2{padding:10 10 10 10;}
10px optional in all cases.
(d) • the first unordered list will be 2 1 mark for each bullet
styled yellow OR
Beginners/Refresher (li elements)
are yellow.
page 10
Max
Question Expected response Additional guidance
mark
16. (a) • margin-top: 30px 2 1 mark for each bullet
• padding-top: 20px
margin{30 0 0 0;}
padding{20 0 0 0;}
page 11