Guides · Exams

How to run a fair coding
practical exam in a school lab.

A coding practical is the one exam where students sit a metre apart, often with the same question on their screens and the internet a few clicks away. This guide covers what to do before, during and after the exam so the marks mean what they should.

Before the exam: set a paper that is hard to copy

Most copying in a lab practical happens because copying is easy, not because students set out to cheat. The paper itself is the first defence.

Check the lab the day before: every computer starts, has the right language installed or the browser you need, and is not logged in to a student's personal account.

During the exam: one screen, one student, one program

The aim during the exam is simple: the only thing on a student's screen should be the paper and their own code.

Marking: run the code, then read it

A program that prints the right answer for the sample input has not necessarily solved the problem. Run every submission against your full set of test cases, including the ones students never saw. Give marks for each case passed, so a nearly-right program earns something.

Then read the code. Test cases tell you whether it works; reading tells you how. A short rubric keeps this fair across the class:

Watch for answers that print expected outputs directly, or that ignore the input. These pass the sample case and fail everything else, and they are worth a conversation, not an automatic zero.

After the exam: results students can learn from

Share which cases each student failed, not just the total. A student who sees that their program breaks on an empty list learns more than one who sees 6 out of 10.

Keep the papers, test cases and marks together. Next year's exam is easier to write when you can see which questions separated the class and which everyone got right.

Try it in your own lab.

Register your school and try Quala Labs free for fourteen days, or book a forty-minute walkthrough on your own devices.