Gcse Computer Science: J277/02: Computational Thinking, Algorithms and Programming
Gcse Computer Science: J277/02: Computational Thinking, Algorithms and Programming
Gcse Computer Science: J277/02: Computational Thinking, Algorithms and Programming
Computer Science
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 2023
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
1. Mark strictly to the mark scheme.
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 tick to confirm that the work has been seen.
• there is an attempt at an answer that 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.
8. The RM Assessor comments box is used by your team leader to explain the marking of the practice responses. Please refer to these comments
when checking your practice responses. Do not use the comments box for any other reason.
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 .
4
J277/02 Mark Scheme June 2023
10. Annotations
Annotation Meaning
Omission mark
Cross
Repeat
Tick
Too vague
Blank pages, pages with no annotation, no attempt to answer the question, page seen on QER
5
J277/02 Mark Scheme June 2023
Annotating scripts:
• Blank pages at the start of the script need SEEN annotation
• Any questions answered elsewhere (e.g. on the first blank pages, separately on the page) need to be linked within RM Assessor
and annotated with ticks/crosses/SEEN as appropriate
• 1 tick for every mark awarded, if a question is given 3 marks there must be 3 ticks
• A BOD or FT annotation needs to be accompanied by a tick
• Any answers with no candidate response need a SEEN annotation and NR entered as the mark.
• Any questions where the candidate has not attempted the question e.g. answered 'don't know' need a SEEN annotation and NR
entered as the mark.
• All questions must be annotated throughout the marking process.
6
J277/02 Mark Scheme June 2023
e.g.
total = sum(num1, num2)
x = num1 + num2
total = x
7
J277/02 Mark Scheme June 2023
1 (c) (ii) if number MOD 2 == 0 then 1 Accept % or other sensible operator that indicates
(AO2 1a)
modulus
1 (c) (iii) difference = measurement1 - 1 Accept other sensible operator that indicates
measurement2 (AO2 1a)
subtraction.
8
J277/02 Mark Scheme June 2023
9
J277/02 Mark Scheme June 2023
10
J277/02 Mark Scheme June 2023
11
J277/02 Mark Scheme June 2023
1 mark
• condition controlled loops run while/until a
condition is true / is false / until a condition is
met
• repeats while value in [pos-1] is larger than
value in [pos] // while (further) swap needed
• will swap value until in correct position //
will swap whilst in incorrect position
12
J277/02 Mark Scheme June 2023
13
J277/02 Mark Scheme June 2023
4 (a) 1 mark each, max 2 if not fully correct circuit. 3 Shapes of logic gates must be correct. NOT gate
(AO3
must include circle for inversion. No other gates
2a)
• NOT B should include circle.
• AND gate with A / C as one direct input…
• …Second AND gate with other (unused) A / C AND gates must have two different inputs, NOT gate
as direct input and output of previous stage as must have one input. All gates must have one output.
other input
Correct system will always have NOT B and two
Fully correct circuit is any of : other AND gates correctly joined.
• Q = (A AND NOT B) AND C
• Q = A AND (NOT B AND C) Accept alternative systems that produce the correct
• Q = (A AND C) AND NOT B output.
See examples below : Accept (BOD) three input AND gate for BP2 and BP3
if used correctly.
15
J277/02 Mark Scheme June 2023
16
J277/02 Mark Scheme June 2023
17
J277/02 Mark Scheme June 2023
18
J277/02 Mark Scheme June 2023
19
J277/02 Mark Scheme June 2023
• Text/code editor…
• …allows program code to be written /
entered / changed
• …allows errors to be fixed
20
J277/02 Mark Scheme June 2023
• Length check
Do not accept defensive design elements (e.g.
• … limit number of characters // check input sanitisation, authentication)
maximum / minimum string length
• … answer / input must be 1 or 2
characters
21
J277/02 Mark Scheme June 2023
22
J277/02 Mark Scheme June 2023
• Initialise / declare score (to zero) before If random numbers chosen, BP3 must use these. If
no random numbers chosen, allow manually
use, outside of any loop
setting values
• Generates 2 random numbers between 1
and 10 BP6 can be awarded for either a loop repeating 3
• Inputs answer from user displaying suitable times or the same code written out 3 times
numbers
• Checks if input is correct answer… BP5 can be given FT if sensible attempt at BP4
• … if correct adds 1 to score Do not award BP6 if same numbers used for every
• Repeats BP2 to 5 three times (for bullet question. Must pick new values each time.
points attempted)
• Outputs score after reasonable attempt at Do not penalise potential off by 1 errors for looping
(Python) or random number generation
counting
Example answer
score = 0
for count = 1 to 3
num1 = random(1, 10)
num2 = random(1, 10)
ans = input("What is” +num1 + " + " +
num2 + "?")
if ans = num1 + num2 then
score = score + 1
end if
next count
print("You scored " + score)
23
J277/02 Mark Scheme June 2023
Section B
6 (a) 1 mark for each row 4 No mark if more than 1 tick on a row.
(AO3 2a)
Variable Boolean Char String Integer Real Allow other indications of choice (e.g. cross) as
UserName ✓ long as clear.
EmergencyPhone ✓
DoorSensor ✓
DoorTime ✓
24
J277/02 Mark Scheme June 2023
Example answer 1
if SystemArmed then
if DoorSensorActive then
SoundAlarm()
else if WindowSensorActive then
SoundAlarm()
endif
endif
Example answer 2
Example answer 3
SoundAlarm()
endif
Example answer 4
26
J277/02 Mark Scheme June 2023
27
J277/02 Mark Scheme June 2023
Example answer
28
J277/02 Mark Scheme June 2023
6 (f) (ii) 1 mark each to max 6 6 BP2 can be achieved either by iteration
(AO3 2b)
accessing each event or manually repeating code
• Input date and store in variable / use directly to access each event. Must be 0 to 6, not 1 to 7.
• Access all seven (indexes 0 to 6) events in array
// loop for each event in array Allow reference to events (table given) or
• Attempt at selection… arrayEvents (2D array) in answer as long as
• …to compare date input against date in array used consistently.
(element 0)
• …adding length (element 3) from array to the total if BP2 loop allow off by one errors (Python),
dates match. looping to array length or array length – 1. Allow
• Outputting calculated total and date in appropriate for each item in array or any other suitable
message(s) at the end loop.
29
J277/02 Mark Scheme June 2023
Example answer 1
total = 0
date = input("Please enter date")
for count = 0 to events.length-1
if events[0, count] == date then
total = total + events[3,count]
endif
next count
print("There were " + total + "
events on " + date)
Example answer 2
total = 0
date = input("Please enter date")
for item in events:
if item[0] == date then
total = total + item[3]
endif
next count
print("There were " + total + "
events on " + date)
30
Need to get in touch?
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
support@ocr.org.uk
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
2023 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.