June 2022 MS - Paper 2 OCR Computer Science GCSE
June 2022 MS - Paper 2 OCR Computer Science GCSE
GCSE
Computer Science
OCR (Oxford Cambridge and RSA) is a leading UK awarding body, providing a wide range of
qualifications to meet the needs of candidates of all ages and abilities. OCR qualifications
include AS/A Levels, Diplomas, GCSEs, Cambridge Nationals, Cambridge Technicals,
Functional Skills, Key Skills, Entry Level qualifications, NVQs and vocational qualifications in
areas such as IT, business, languages, teaching/training, administration and secretarial skills.
It is also responsible for developing new specifications to meet national requirements and the
needs of students and teachers. OCR is a not-for-profit organisation; any surplus made is
invested back into the establishment to help towards the development of qualifications and
support, which keep pace with the changing needs of today’s society.
This mark scheme is published as an aid to teachers and students, to indicate the requirements
of the examination. It shows the basis on which marks were awarded by examiners. It does not
indicate the details of the discussions which took place at an examiners’ meeting before marking
commenced.
All examiners are instructed that alternative correct answers and unexpected approaches in
candidates’ scripts must be given marks that fairly reflect the relevant knowledge and skills
demonstrated.
Mark schemes should be read in conjunction with the published question papers and the report
on the examination.
© OCR 2022
MARKING INSTRUCTIONS
PREPARATION FOR MARKING
RM ASSESSOR
1. Make sure that you have accessed and completed the relevant training packages for on-screen marking: RM Assessor assessor Online Training;
OCR Essential Guide to Marking.
2. Make sure that you have read and understood the mark scheme and the question paper for this unit. These are posted on the RM Cambridge
Assessment Support Portal http://www.rm.com/support/ca
3. Log-in to RM Assessor and mark the required number of practice responses (“scripts”) and the number of required standardisation responses.
YOU MUST MARK 5 PRACTICE AND 10 STANDARDISATION RESPONSES BEFORE YOU CAN BE APPROVED TO MARK LIVE SCRIPTS.
MARKING
3. The schedule of dates is very important. It is essential that you meet the RM Assessor 50% and 100% (traditional 40% Batch 1 and 100% Batch 2)
deadlines. If you experience problems, you must contact your Team Leader (Supervisor) without delay.
4. If you are in any doubt about applying the mark scheme, consult your Team Leader by telephone or the RM Assessor messaging system, or by email.
Contradictory Responses
When a candidate provides contradictory responses, then no mark should be awarded, even if one of the answers is correct.
Short Answer Questions (requiring only a list by way of a response, usually worth only one mark per response)
Where candidates are required to provide a set number of short answer responses then only the set number of responses should be marked. The
response space should be marked from left to right on each line and then line by line until the required number of responses have been considered. The
remaining responses should not then be marked. Examiners will have to apply judgement as to whether a ‘second response’ on a line is a development
of the ‘first response’, rather than a separate, discrete response. (The underlying assumption is that the candidate is attempting to hedge their bets and
therefore getting undue benefit rather than engaging with the question and giving the most relevant/correct responses.)
Short Answer Questions (requiring a more developed response, worth two or more marks)
If the candidates are required to provide a description of, say, three items or factors and four items or factors are provided, then mark on a similar basis
– that is downwards (as it is unlikely in this situation that a candidate will provide more than one response in each section of the response space.)
6. Always check the pages (and additional objects if present) at the end of the response in case any answers have been continued there. If the candidate
has continued an answer there then add a SEEN annotation to confirm that the work has been seen.
• anything is written in the answer space and is not worthy of credit (this includes text and symbols).
Team Leaders must confirm the correct use of the NR button with their markers before live marking commences and should check this when
reviewing scripts.
PMT
If you have any questions or comments for your team leader, use the phone, the RM Assessor messaging system, or e-mail.
9. Assistant Examiners will send a brief report on the performance of candidates to their Team Leader (Supervisor) via email by the end of the marking
period. The report should contain notes on particular strengths displayed as well as common errors or weaknesses. Constructive criticism of the
question paper/mark scheme is also appreciated.
Annotation Meaning
Omission mark
Benefit of doubt
Cross
Follow through
Repeat
Tick
Too vague
Noted but credit not given, blank pages, pages with no annotation
PMT
whilescore != 0
playgame() ✓
endwhile
if playerHit() then
score = score – 1 ✓
endif
switch bonus:
case 0: ✓
score = 9
case 1:
score = 7
case 2:
score = 5
endswitch
1 (b) • score = score + 1 // score +=1 // score++ 1 Allow other logically correct answers that result in score
(AO3 2b) increasing by one and being overwritten. Do not accept
score + 1 / score = +1
Ignore any superfluous code that does not affect the outcome
Mark the shape of each gate, not the name written if given.
Ignore any writing / notes.
Lines do not have to be drawn or joined up, but if they are, gates
must have the correct number of inputs/outputs. Penalise
once then FT.
2 (a) (ii) • To show all possible inputs (to the logic circuit)… 2 For 2nd BP, must be clear that the output is linked to the input
• …and the associated/dependent output (for each (AO1 1b) values given.
input)
“All possible combinations of inputs and outputs” gains the first
mark (all possible inputs) but not the second.
2 (a) (iii) • 8 // eight 1 Accept other answers that equate to 8 (e.g. 23)
(AO2 1a)
PMT
Conditions Outcome
Not Saturday and (either a Half price
student or has a discount
card).
2 (d) (i) • Convert/change one data type to another 2 Do not accept “change to string” – this is the use in this example
• Line 03 // 3 // three (AO1 1b, but not a definition.
AO2 2b)
2 (d) (ii) • Kofi2021 as staffID on line 03 4 Max 2 if incorrect order. Ignore misspelling of Kofi
• Kofi2021x as staffID on line 05 (AO3 2c)
• Kofi2021xx as staffID on line 05 Penalise lack of / errors with line numbers once then FT. Ignore
capitalisation. Ignore additional lines unless outcome impacted.
• ID Kofi2021xx output on line 07 as first and only output
staffID does not have space in. Output does have a space in.
Penalise spaces once then FT. Do not penalise unless obvious.
01 Kofi
02 2021
03 Kofi2021
05 Kofi2021x
05 Kofi2021xx
07 ID Kofi2021xx
PMT
3 (b) Any four bullet points for 1 mark each 4 Do not allow “split the list in half” on its own as first step,
• Select / choose / pick middle number (or left/right of middle as (AO1 1b) this is incorrect.
even number) and …
• …check if selected number is equal to / matches target Can get BP1 and 2 in one step (e.g. “check if the middle
number (not just compare) number is the one we’re looking for”)
• …if searched number is larger, discard left half // if searched
number is smaller, discard right half For BP3, accept focussing on correct half
• Repeat until number found
• … or remaining list is of size 1 / 0 (number not found) Repeat (BP4) must be in the context of an attempt at a
binary search. Allow correct reference to recursion.
4 (b) (i) • Multiplication 2 Accept other correct answers that mean the same
• Division (AO1 1a) Accept floor / integer division // division with no
remainder (Python v2.x)
Note – algorithm questions in Section B (5bi, 5ci, 5cii, 5e) require candidates to answer using OCR Reference Language or a high-level
programming language. Candidates cannot answer using structured English or flowcharts and responses of this nature should be marked
as NAQ.
Candidates do not need to state which language they are using. Because of this, you must not assume use of a particular language. Mark for
logical correctness and not for the syntax of any particular language. Ignore case sensitivity. Variable names must be correct/consistent.
5 (a) (iii) • SELECT FirstName, Surname, Nights, 4 Order of fields for BP1 not important but must show all fields and
Room, StayComplete // SELECT * (AO3 1, AO3 be separated by commas.
2c)
• FROM TblBookings
• WHERE Ignore capitalisation and spacing. Spelling must be correct. Ignore
quotes around numeric values or field/table names.
• Nights > 1 // Nights >= 2 // Nights
BETWEEN 2 AND 5
Allow other logically valid SQL statements. Check with TL if
required.
• …Outputs “NOT ALLOWED” (or equivalent) if any Do not accept logically incorrect Boolean conditions such as
of the 3 checks are invalid (must check all three) if firstname or surname == ""
• …Outputs “ALLOWED” (or equivalent) only if all
three checks are valid (must check all three) Do not accept > or < for >=, <=. Ignore capitalisation
e.g.
valid = True
Note : output marks are given for if entire system
if firstname == "" or surname == "" then
produces the correct output. For example, If a user
valid = False
enters a valid name and room but an invalid number of
end if
nights, the system should say “NOT ALLOWED” (or
if room != "basic" and room != "premium" then
equivalent). If this works and produces the correct
valid = False
response no matter which input is invalid, BP4 should
endif
be given. if nights < 1 or nights > 5 then
valid = False
The same process holds for the valid output – if (and endif
only if) three valid inputs results in an output saying
“ALLOWED” (or equivalent), BP5 should be given. Do if valid then
not give this if ALLOWED is printed when (for example) print("ALLOWED")
two inputs are valid and one is invalid. else
print("NOT ALLOWED")
For any output marks to be given, a sensible attempt endif
must have been made at all three checks. These may
not be completely correct (and may have been BP1 to 3 can check for valid or invalid inputs. . Pay particular
penalised in BPs 1 to 3) but should be enough to allow attention to use of AND / OR. Only give marks for output if these
the FT marks for output. work together correctly.
Example above shows checking for invalid data. Checks for valid
data equally acceptable Examples shown below :
1 // 5 Boundary ALLOWED
5 (c) (i) • Function header for newPrice… 4 BP1 must be clear that a new function is being defined. E.g.
• …taking (at least) two parameters (AO3 2b) function / def keyword. Allow FT for subsequent marks if not
• …correctly calculates price based on parameters (if present.
present) within function …
• …returns this calculated price Ignore any code outside attempt at function definition.
e.g.
function newPrice(nights, room)
if room == "basic" then
price = 60 * nights
elseif room == "premium" then
price = 80 * nights
endif
return price
endfunction
PMT
e.g.
print(newPrice("premium", 5))
x = newPrice(5, "premium")
print(x)
Initial input outside of loop that is then also included within loop is
fine. For example, input of hours outside of loop but input is then
repeated again at end of loop.
e.g.
while hours != 0
hours = input("Enter hours")
electric = input("enter Y for electric or N")
if electric == "Y" then
price = hours * 2
elseif electric == "N" then
price = hours * 4
endif
print(price)
endwhile
PMT
If you ever have any questions about OCR qualifications or services (including administration, logistics and teaching) please feel free to get in
touch with our customer support centre.
Call us on
01223 553998
ocr.org.uk/qualifications/resource-finder
ocr.org.uk
Twitter/ocrexams
/ocrexams
/company/ocr
/ocrexams
OCR is part of Cambridge University Press & Assessment, a department of the University of Cambridge.
For staff training purposes and as part of our quality assurance programme your call may be recorded or monitored. © OCR
2022 Oxford Cambridge and RSA Examinations is a Company Limited by Guarantee. Registered in England. Registered office
The Triangle Building, Shaftesbury Road, Cambridge, CB2 8EA.
OCR operates academic and vocational qualifications regulated by Ofqual, Qualifications Wales and CCEA as listed in their
qualifications registers including A Levels, GCSEs, Cambridge Technicals and Cambridge Nationals.
OCR provides resources to help you deliver our qualifications. These resources do not represent any particular teaching method
we expect you to use. We update our resources regularly and aim to make sure content is accurate but please check the OCR
website so that you have the most up-to-date version. OCR cannot be held responsible for any errors or omissions in these
resources.
Though we make every effort to check our resources, there may be contradictions between published support and the
specification, so it is important that you always use information in the latest specification. We indicate any specification changes
within the document itself, change the version number and provide a summary of the changes. If you do notice a discrepancy
between the specification and a resource, please contact us.
Whether you already offer OCR qualifications, are new to OCR or are thinking about switching, you can request more
information using our Expression of Interest form.
Please get in touch if you want to discuss the accessibility of resources we offer to support you in delivering our qualifications.