0% found this document useful (0 votes)
5 views

642763 Mark Scheme Computational Thinking Algorithms and Programming

This document is the mark scheme for the GCSE Computer Science exam J276/02, focusing on computational thinking, algorithms, and programming, published by OCR for November 2020. It outlines the marking criteria, annotations, and sample answers for various questions, providing guidance for examiners on how to award marks based on candidates' responses. The document serves as a resource for teachers and students to understand the expectations and requirements of the examination.

Uploaded by

2007.ajaygoswami
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

642763 Mark Scheme Computational Thinking Algorithms and Programming

This document is the mark scheme for the GCSE Computer Science exam J276/02, focusing on computational thinking, algorithms, and programming, published by OCR for November 2020. It outlines the marking criteria, annotations, and sample answers for various questions, providing guidance for examiners on how to award marks based on candidates' responses. The document serves as a resource for teachers and students to understand the expectations and requirements of the examination.

Uploaded by

2007.ajaygoswami
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

GCSE (9–1)

Computer Science

J276/02: Computational thinking, algorithms and programming

General Certificate of Secondary Education

Mark Scheme for November 2020

Oxford Cambridge and RSA Examinations


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 2020

Oxford Cambridge and RSA Examinations


J276/02 Mark Scheme November 2020

Annotations

Annotation Meaning
Answer seen – this annotation must be used on all blank pages within an answer booklet (structured or unstructured) and on
SEEN
each page of an additional object where there is no candidate response.
Omission mark

Benefit of doubt

Cross

Follow through

Not answered question

Benefit of doubt not given

Repeat

Tick

Each question must include annotation. All marks credited on point-based marking must be given a tick.
J276/02 Mark Scheme November 2020

Question Answer Mark Guidance


1 (a) 1 mark for each letter 4 Accept answers that write the definition instead of the
letter.
Decomposition D AO1
1a(4)
Abstraction B
Input Sanitisation A
Casting F

1 (b) (i) • timer = 7.3 1 Ignore dim / define / etc and data types
Do not allow use of string delimiters or other unsuitable
AO3 data types.
2b(1) Allow other suitable assignment symbols (e.g. := ) Do
not allow == for assignment.
Do not penalise case. Spelling must be accurate

1 (b) (ii) • Real // Float 1 Allow decimal, single, double or equivalent

AO2
1b(1)
2 (a) 4
Line Program code Output
AO2
08 print score 18 1b(4)

09 print "name" name

10 print 37
newscore(score,2)

11 print score 18
J276/02 Mark Scheme November 2020
2 (b) 1 mark per bullet to max 2 2 Accept “human language” as English for BP4
• Easier/quicker for humans to write
• Easier/quicker to read / understand / remember AO1 “Easier to use” is too vague.
1b(2)
• Easier/quicker to maintain / debug / spot errors
• …because code is closer to English / uses English
words
• Less code to write
• …because one HLL instruction represents many
assembly instructions
• Portable (between processors) // will work with
different types of computer

2 (c) 1 mark per bullet to max 2 2


• Each character (in character set) has a unique
(binary) number/value AO2
1a(2)
• Each character in the string is assigned its
associated number/value
• The (binary) value of each character is
stored/combined (in order)
• … by example e.g. The binary value for D, then for
r, then for u
• Uses ASCII/Extended ASCII/Unicode
J276/02 Mark Scheme November 2020

Question Answer Mark Guidance


3 (a) (i) 1 mark per bullet to max 2 2 Allow two any suitable examples for two marks
e.g.
• Check the program meets the user requirements AO1 BOD “find errors”, “find bugs” for BP2
1b(2)
• Check the program works (as intended) // detect
logic / syntax errors “fix errors” by itself is one mark (BP4)
• Check the program does not crash (under invalid
entry) // check error messages are suitable
• …allow these errors to be fixed
• …make sure there are no problems when released
• Any suitable example related to the vending
machine e.g. gives correct change

3 (a) (ii) 1 mark per bullet to max 2 2 Do not accept just “repeatedly testing” for iterative
• Iterative is during development // repeatedly testing
after/while making changes AO1 BOD “iterative testing tests modules/sections”
1b(2)
• Final is when the development is (almost) complete //
done after iterative testing

3 (a) (iii) 3 For £0.49 accept any value <£0.50. Must be a specific
Money value, not a description.
Code entered Expected result AO3
inserted
2b(3) Accept any suitable error message for invalid selection

C2
£0.49
(or any value less
that £0.50)

Invalid Selection
(or any suitable error message)
J276/02 Mark Scheme November 2020
3 (b) (i) • money 1 Must be an identifier, not description. Ignore case.
• price
AO1
1b(1)
3 (b) (ii) • one 1

AO2
1b(1)
3 (c) 1 mark per bullet 5 Reasonable attempt at BP1 needed for credit BP2, 3 and 4
• Checking if money>=price…
• …decision (diamond shape) used AO3 Ignore other additional code.
2b(5)
• …venditem() and giveChange(money-price) if
True/Yes BP3 and BP4 must follow on from True/False // Yes/No
• …output an error if False / No decision to be credited.
• Terminator used to start and end the program and all
Subroutines names and parameters must be correct. Ignore
paths terminated
missing brackets on venditem.

False

True
J276/02 Mark Scheme November 2020

Question Answer Mark Guidance


3 d i 1 mark per bullet to max 2 2
• Indentation // whitespace
• Appropriately named variables / identifiers AO2
1b(2)
• Modularisation / use of subroutines
3 d ii • Comments 1
• Use of constants
AO2
1b(1)
3 e • SELECT ItemCode // * 4 Accept other fields shown in addition to ItemCode
• FROM ITEMS
AO3 Accept Stock <=9 / etc.
• WHERE 2b(4)
• …Stock < 10
Ignore case. Spelling of fields and table must be correct.

If WHERE missing, Stock < 10 must be after FROM clause.


3 f 1 mark per bullet 5 Accept alternative error messages. Variable names must
• Input from user not include obvious spaces.
• Check IF input value is “on”… AO3
2b(5)
• … if so, assign 1 to statevalue BP3 dependent on BP2. BP2 and BP4 must be a logical
• Correct assignment of 2 for “off” and 3 for comparison using IF and not just the CASE statement. NE
“suspended” with correct state and IF to simply replace CASE with IF.
• Correct logical check (else) to output “invalid
state” if no state set Penalise each error once then apply FT.

e.g.
newstate = input("Enter the new state : ")
if newstate == "on" then
statevalue = 1
elseif newstate = "off" then
statevalue = 2
elseif newstate = "suspended"
statevalue = 3
else
print("Invalid state")
endif
J276/02 Mark Scheme November 2020
4 (a) • E3 2 1 mark per digit (mark right to left)
Max 1 if any additional leading values
AO1
1b(2)
4 (b) • 0110 1001 must be 8 bits 2 1 mark per nibble (mark right to left).
Max 1 if any additional leading values
AO1
1b(2)
4 (c) 1 mark per bullet to max 2 2 Mark response as a whole.
• Easier/quicker to communicate / enter / write /
read / remember AO1 Do not accept answers simply describing what hexadecimal
1b(2) is.
• Less chance of input errors // easier to spot
errors
• They are smaller / shorter “easier to understand” or “easier to use” on its own is NE
• Easy to convert between binary and
Hexadecimal BP3 (smaller) must refer to size when written down, NOT
size when stored which is unaffected)

4 (d) (i) • 3 1 CAO

AO1
1b(1)
4 (d) (ii) • 1 1 CAO

AO1
1b(1)
4 e • 00001111 1 Ignore missing or additional leading zeros

AO1
1b(1)
4 f i 1 mark per bullet point 3 Shape must be accurate
• B AND C
• OR gate with two inputs, one of which is A AO1
1b(3)
• …correct connection of these two gates with no
additional gates / connections
J276/02 Mark Scheme November 2020
4 f ii 1 mark per bullet point 4 CAO
• Correct completion of A and B inputs as 1 1 A B P
• 0 output for 01 input AO1
1b(1)
• 0 output for 10 input AO2 0 0 1
• 0 output for 11 input 1b(3)
0 1 0

1 0 0

1 1 0
J276/02 Mark Scheme November 2020

Question Answer Mark Guidance


5 a • Number of pixels (in an image) 1 Accept pixels per inch / mm / unit area (density)
• Height and width (of an image)
AO2
1b(1)
5 b • 90 (pixels in an image) // 15 x 6 (pixels in image) 4 Must clearly show multiplication for 3rd BP
• Multiply pixels x bits per pixel
• …2 bits required per pixel (because 3 colours) AO1
1b(2)
• 180 bits overall answer AO1
1b(2)
5 c • Reduce number of pixels / resolution 2 Accept descriptive answers linked to given logo (e.g
• Reduce number of colours "change to black and white only")
• Use lossy compression AO2 “Make image smaller” is NE
1a(2)
• Use lossless compression
Allow compression by itself for one answer.
5 d i • Data about data / the image/file // properties of the 1 Do not accept examples without a definition.
file
AO1
1b(2)
5 d Ii e.g. 1 Accept any sensible data that could be stored alongside
• height an image.
• width AO1
1a(2) Do not accept filename
• colour depth
• resolution
• geolocation
• date/time created/last edited // timestamp
• file type
• author details

6 (a) • Access “Rob” / studentnames[0]… 4 Answer must refer to this array, not a generic description
• …does not equal “Anna” // not desired item // of linear search. “Access first item” is NE for BP1 or BP3.
move on AO2 Must refer to this scenario.
1b(4)
• Access “Anna” / studentnames[1]
• …does equal “Anna” // stop // item found Max 1 for “Compare ‘Anna’ to each item in list” if nothing
else credited.
J276/02 Mark Scheme November 2020
6 (b) • Anna inserted before Rob as first two 5 Rob Anna Huw Emma Patrice Iqbal
elements… Anna Rob Huw Emma Patrice Iqbal
• …Huw correctly inserted into sorted list… AO2 Anna Huw Rob Emma Patrice Iqbal
1b(5)
• …Emma correctly inserted into sorted list … Anna Emma Huw Rob Patrice Iqbal
• …Patrice correctly inserted into sorted list … Anna Emma Huw Patrice Rob Iqbal
• …Iqbal correctly inserted into sorted list and no Anna Emma Huw Iqbal Patrice Rob
further changes made.
Sorted list highlighted

6 (c) • Use of iteration (any use) … 6 BP 2 and 3 may be met together with suitable input
• ...loops for each item in array // loops 6 times statement. Both dependent on attempt at iteration.
• …to print out each item in studentnames AO3
2b(6) BP5 not dependent on correct previous parts.
• …input attendance
• Add up/calculate students present and absent
• …Outputs present and absent (in suitable BP6 needs reasonable attempt at totalling present and
message) absent figures.

Ignore non-initialisation of counter variables.

Flowcharts are acceptable but must show how to solve


the problem, not simply repeat the question.

Example algorithm

present=0
absent=0
for i = 0 to (studentnames.length) -1
print(studentnames[i])
attendance=input("absent or present?")
if attendance=="present" then
present=present+1
else
absent=absent+1
endif
next i
print ("Present students: " + present)
print ("Absent students: " + absent)
OCR (Oxford Cambridge and RSA Examinations)
The Triangle Building
Shaftesbury Road
Cambridge
CB2 8EA

OCR Customer Contact Centre

Education and Learning


Telephone: 01223 553998
Facsimile: 01223 552627
Email: [email protected]

www.ocr.org.uk

For staff training purposes and as part of our quality assurance programme your call may be
recorded or monitored

You might also like