All subjects · Computer Science · WCP04 Advanced Practical Programming and Problem-solving

The Unit 4 on-screen exam: how it works and how to tackle it

Edexcel IAL Computer Science · WCP04 Advanced Practical Programming and Problem-solving

Unit 4 is a practical exam taken on a computer: you write, amend and test Python 3 code. Knowing exactly how it runs, and practising the kinds of task it sets, is worth as many marks as any single topic.

Practise this in the app: instant marking and a fix for every mistake. Free, no email needed to start.

Practise this lesson

The paper

Files and saving

The kinds of question

The sample assessment shows the range, with marks rising through the paper:

Marks are awarded for specific points, usually tied to lines of the supplied code, and equivalent correct answers are accepted.

Technique

Worked example

A 20-mark question asks you to write a scoring program. How long should you spend, and how should you start?

  1. Time: 20 marks x 2.25 minutes per mark = 45 minutes, about 45 minutes.
  2. Start: read the specification, list the inputs, processing and outputs, and note the required output format.
  3. Decompose into functions (load, score, rank, display), write and test one at a time with the supplied data.
  4. Save under the required filename after each working step.

Answer: About 45 minutes, starting with a decomposition and building in small, tested steps.

Key idea: 3 hours, 80 marks, 5 compulsory questions, Python 3 in an IDE, no AI or internet, PLS provided; save to the named file and never overwrite originals; tasks range from fixing errors to a full clean solution; about 2.25 minutes per mark; build and test in small steps.

Check yourself

  1. The Unit 4 paper lasts 3 hours and has 80 marks. How many minutes is that per mark?
    Show answer

    2.25 minutes. 180 minutes / 80 marks = 2.25 minutes per mark.

  2. Using the rate of 180 minutes for 80 marks, how many minutes should you allow for a 12-mark question?
    Show answer

    27 minutes. 12 x 2.25 = 27 minutes.

  3. How many questions must you answer on the Unit 4 paper?
    Show answer

    5. There are five questions and all are compulsory.

  4. You have finished amending Q03.py. What should you do with it?
    • Overwrite Q03.py with your version
    • Save it under the filename the question gives, in the required folder, leaving the original file unchanged
    • Copy your code into the question paper booklet
    • Email it to the invigilator
    Show answer

    Save it under the filename the question gives, in the required folder, leaving the original file unchanged. The instructions say to save new or amended code under the specified name and not to overwrite the original files.

  5. What is the Programming Language Subset (PLS)?
    • A list of banned Python keywords
    • A library you must import in every answer
    • The mark scheme
    • A document listing the Python features the paper may require, provided digitally in the exam
    Show answer

    A document listing the Python features the paper may require, provided digitally in the exam. Questions are set within the PLS, but other valid Python is still credited.

  6. A question asks you to make a function pure. Which action is most likely to lose you marks?
    • Returning a new list instead of changing the argument
    • Rewriting the rest of the program and adding new menu options
    • Testing the function with the supplied data
    • Adding a short comment explaining the change
    Show answer

    Rewriting the rest of the program and adding new menu options. Candidates are told not to change the intended functionality or add functionality that was not asked for.

  7. You cannot get the final part of a question working with 10 minutes left. What is the best strategy?
    • Delete the whole answer and start again
    • Leave the file unsaved until it is perfect
    • Spend the remaining time on decoration of the output
    • Make sure the parts that work run and are saved, since marks are given for individual points
    Show answer

    Make sure the parts that work run and are saved, since marks are given for individual points. Point-based marking rewards each correct element, so a saved, running partial solution scores.

Practise with instant feedback

Sources

Last updated 8 November 2026. Spotted a mistake? Tell us.