We use cookies to run the site, and (only with your permission) to understand usage with analytics.Read our Privacy Policy.

Analytics is off until you accept.
Security

How to Run an Online Coding Exam for Your Students

SANJAY6 minutes
How to Run an Online Coding Exam for Your Students

It is 9:58 on exam morning. Two hundred students are logging in. One can't open the editor, another's laptop is missing a library, and a third emails to ask whether the exam has started. You haven't even looked at the first submission, and you are already worried about who might be using an AI tool in another tab.

An online coding exam doesn't have to feel like this. With the right plan, the morning can be quiet, the results fair, and the grading done in hours instead of a week. This guide walks instructors through it, from writing the questions to sending grades to the LMS.

What makes an online coding exam different from a written one?

A written exam checks whether students can describe code. A coding exam checks whether they can write and run it, which is closer to what the course is really about. Doing that online adds three challenges:

Plan for all three before you write a single question.

Step 1: Decide what the exam should measure

Start from the course outcomes, not from a question bank. For each question, write one sentence: "This checks whether a student can…". Then balance the paper:

Keep the total working time realistic. If you can solve the paper in 30 minutes, give students 90.

Step 2: Set up an environment every student can trust

Most exam-day problems are setup problems. Remove them before the day:

Step 3: Plan for integrity without punishing honest students

You don't need to treat every student as a suspect. You need a setup that makes cheating hard and honest work easy.

Step 4: Write the grading plan before the exam

Decide how marks will be awarded while the questions are fresh:

Part of the markHow it is checked
Correct output for normal inputsVisible and hidden test cases
Edge casesHidden test cases
Code quality and structureRubric, reviewed by you or a TA
Explanation (optional)A short written answer about one decision

Partial credit matters. A student whose code passes six of ten tests should not score the same as one who submitted nothing. Our guide to hidden test cases covers how to design them.

Step 5: On exam day

Step 6: After the exam

  1. Run the tests across every submission.
  2. Review the borderline scores and any integrity flags by hand.
  3. Check one question's results: if most of the class failed the same test, the test may be wrong.
  4. Sync grades to the LMS and release them with short feedback.
  5. Note what to change next time while the details are fresh.

Where does Lab.Computer fit?

Lab.Computer gives every student an identical, browser-based coding environment, launched within seconds even for classes of 3,000, so exam morning starts with coding instead of troubleshooting.

Proctoring through our Proctortrack partnership adds identity verification, browser and camera monitoring, environment checks and session recording, which you can review after the exam. Tests run automatically, including hidden ones, and AI Evaluation drafts feedback while you review, edit, or override every grade. Scores sync to Canvas, Moodle, Blackboard, Sakai, or Brightspace through LTI 1.3.

Planning an end-of-term coding exam? We can set one up with you on a sample paper.

Book a free demo

Quick takeaways

Frequently asked questions

How do you conduct an online coding exam for students?

Plan the questions from your course outcomes, give every student the same ready environment, run a practice session, choose a proctoring level that matches the stakes, and grade with visible and hidden tests plus a short rubric.

How do you prevent cheating in an online coding exam?

Use questions tied to your course, hidden test cases, a clear AI policy, and proctoring suited to the exam's stakes. Review flags by hand rather than failing students automatically.

How long should an online coding exam be?

Long enough that students can think, not just type. A common rule is to give students about three times as long as it takes you to solve the paper.

Can coding exams be graded automatically?

Correctness can be graded automatically with visible and hidden test cases. Code quality and explanations still benefit from a quick human review, so plan time for both.

What should students do if their code won't run during the exam?

Give them one clear support channel and a short exam-day guide. Using the same browser-based environment for every student removes most setup problems before they start.

Online Coding ExamProgramming AssessmentOnline ProctoringAutogradingCS Education