Skip to content
Paper 2 · Paper 4 · auto-marked

ZAK's Programming Tasks

The scenario question is where Paper 2 marks are won and lost. Each task here is a real requirement list with the test data an examiner would try — normal, boundary, abnormal, extreme — and some of the tests are hidden. Write it in pseudocode or Python, press Run the tests, and get a mark out of the total. Two attempts unlock the model answer.

Loading the tasks…

What the bank covers

  • Input, process, output 3

    Read values, calculate, print — with the exact wording asked for

  • Selection 3

    IF / ELSE and CASE with the boundaries the examiner tests

  • Loops 5

    Count-controlled, condition-controlled, nested and sentinel loops

  • Validation 3

    Range, presence, length and type checks that keep asking

  • Arrays 4

    1D and 2D arrays: fill, total, search, find the largest, sort

  • String handling 4

    LENGTH, SUBSTRING, UCASE, reversing, counting characters

  • Procedures & functions 3

    Parameters, return values, BYREF

  • Files 1

    Write, append, read back and total a text file

  • Stacks & queues 2

    Array implementations with the pointers the 9618 mark scheme wants

  • Recursion 2

    Base case, recursive case, tracing the calls

  • Object-oriented 2

    Classes, constructors, inheritance, polymorphism (A2)

  • Full scenario tasks 5

    The 15-mark Paper 2 question: several requirements in one program

Every model answer passes its own tests in both languages (scripts/check-tasks.ts), so a task can never expect an output the examiner-style solution does not produce.

Enroll nowOnline classes