| OCR |
GCSE (9-1) Computer Science
Mark Scheme
J277/02: Data Representation & Programming Constructs
|
| Question | Answer | Marks | Guidance |
|---|---|---|---|
| 1a | The part of the program where a variable is recognised / can be accessed. | 1 |
Examiner's Note: LOW FREQUENCY. Students often confuse "Scope" with "Data Type". Ensure students use the term "Subprogram" or "Function" when describing local scope.
|
| 1b |
1 mark for each point, 1 for expansion:
|
4 | |
| 2a |
record Car
(Accept Python Class definition equivalent) |
3 |
1 mark for RECORD.
1 mark for correct fields.
1 mark for correct types.
|
| 2b |
showroom[5].Price = 12500.00
|
2 |
Examiner's Note: GHOST TOPIC. Rarely tested but core J277 requirement. Many students will try to use 2D array syntax
showroom[5, 2]; this should receive 0 marks if the question specifies a Record. |
| 3 |
|
3 |
Examiner's Note: LOW FREQUENCY. Tests the ability to treat characters as underlying integers.
|
| 4 |
|
4 |
Examiner's Note: MID FREQUENCY. OCR ERL uses 0-based indexing.
|
| 5a | ASCII uses 7/8 bits; Unicode uses 16/32 bits. | 2 | |
| 5b | Unicode can represent characters from all world languages/emojis. | 2 | |
| 6a | Type mismatch / Adding string to integer. | 1 |
Examiner's Note: HIGH FREQUENCY. Common error.
|
| 6b |
num = int(input("..."))
|
1 | |
| 7 |
|
4 | |
| 8 |
|
4 |
Examiner's Note: HIGH FREQUENCY. Essential for J277 Paper 2. DIV always truncates; it does not round.
|
| 9 |
|
4 |
Examiner's Note: ISBN must be a String because it contains hyphens and does not require calculation.
|
| 10 | Prevents accidental changes to the value during runtime; makes code easier to maintain (change value in one place). | 2 |
Focus on "accidental change" to earn the 2nd mark.
|