GCSE (9-1) Computer Science
Mark Scheme
J277/02: Unit 2.2 Programming Advanced
Question Answer Marks Guidance
1
  • / : 5.0 (or 5)
  • DIV : 3
  • MOD : 2
  • ^ : 16
4
1 mark per correct answer.
For DIV, integer division truncates decimals.
2
  • OR : True (y==10 is True)
  • AND : False (y!=10 is False)
  • NOT : False (x==5 is True, NOT True is False)
3
1 mark per correct answer.
3
  • / performs real/float division (keeps decimal), while DIV performs integer division (removes decimal) (1).
  • average must be a Real/Float for / and an Integer for DIV (1).
  • Difference in result (decimal vs whole) (1).
3
4 (a) = (1)
(b) == (1)
(c) if score == 100: (1)
3
Must use correct operators.
5a
  • Using OR means every number is valid (e.g., 100 is > 13). It allows numbers outside the range (1).
  • Example: Age 5 or Age 100 (1).
2
5b if age >= 13 AND age <= 19: 2
1 mark for AND. 1 mark for correct comparison boundaries.
6 Runtime Error (or TypeError). You cannot concatenate a String ("The price...") with an Integer (price) without casting. 2
Reject: "It doesn't work". Must use technical terms.
7 Rows:
1. 8 | 3 | 3 | True (1)
2. 6 | 4 | 7 | True (1)
3. 4 | 5 | 12 | False (1)
4. Final Output: 12 (2 marks for stopping and output)
5
8 1. AND (1)
2. OR (1)
2
9
if id >= 1 and id <= 3:
    print("Red")
elif id >= 4 and id <= 6:
    print("Blue")
else:
    print("Spectator")
4
1 mark for combining conditions. 1 mark for AND. 1 mark for elif. 1 mark for else.
10
  • num = int(input(...)) (1)
  • if num % 2 == 0: (1)
  • print("Even") / else: print("Odd") (1)
  • if num > 0 and num % 10 == 0: (2)
  • if num < 0: (1)
6
11 item1.Stock = item1.Stock - 5 2
1 mark for dot notation. 1 mark for correct assignment logic.