Skip to lesson

Rules and conduct in online proctored tests

A candidate with a good score loses an offer because a roommate walked into the frame, or a laptop updated mid-test. Proctoring rules look strict, but they are predictable, and a calm routine keeps you safe.

How proctoring works

A proctored test is an online exam that is watched while you take it, by software, by a person, or both. It uses tools such as your webcam, microphone, screen or browser monitoring and tab-switch detection.

Many platforms record events and raise warnings; some end the test after too many. The example below is a made-up rule set that turns proctoring events into warnings.

Example 1 · Turning proctoring events into warnings

ProctorEventsDemo.javaJava
import java.util.List;
public class ProctorEventsDemo {    public static void main(String[] args) {        List<String> events = List.of("FACE_OK", "TAB_SWITCH", "FACE_OK", "NO_FACE",                "TAB_SWITCH", "VOICE", "TAB_SWITCH", "TAB_SWITCH");        int maxTabSwitches = 3;   // a made-up rule: more than 3 ends the test        int tabSwitches = 0, warnings = 0;
        for (String e : events) {            if (e.equals("FACE_OK")) continue;            warnings++;            System.out.println("Warning " + warnings + ": " + e);            if (e.equals("TAB_SWITCH")) tabSwitches++;            if (tabSwitches > maxTabSwitches) {                System.out.println("Test submitted automatically after " + tabSwitches + " tab switches");                break;            }        }    }}
Output
Warning 1: TAB_SWITCH
Warning 2: NO_FACE
Warning 3: TAB_SWITCH
Warning 4: VOICE
Warning 5: TAB_SWITCH
Warning 6: TAB_SWITCH
Test submitted automatically after 4 tab switches

What this code does

  • This is a simplified model, not any real platform's rules. It shows the idea: the software logs events, warns you, and may act when a limit is crossed.
  • Even innocent events count: looking away for long can log NO_FACE, and a family member talking nearby can log VOICE. Prepare the room so these never happen.

Tab-switch detection notices when you leave the test window, and the webcam checks that you are alone and present. Some tests also have a live human proctor who can message you. The exact features depend on the platform and the company, so read the instructions.

Predict the output

Predict the proctor

Read each program and pick what it prints.

Round 1 of 2

public class Warn {
public static void main(String[] args) {
String[] events = {"TAB_SWITCH", "FACE_OK", "TAB_SWITCH", "TAB_SWITCH"};
int warnings = 0;
for (String e : events) {
if (e.equals("TAB_SWITCH")) warnings++;
}
System.out.println(warnings >= 3 ? "auto-submit" : "continue");
}
}

The system check before the test

A system check is the test platform's check of your browser, camera, microphone and internet before the test starts. Most platforms ask you to run it a day or a few hours in advance.

Run the check on the exact laptop, browser and network you will use. The example below prints a ready or not-ready line for each preparation item.

Example 2 · A pre-test system check

SystemCheckDemo.javaJava
import java.util.LinkedHashMap;import java.util.Map;
public class SystemCheckDemo {    public static void main(String[] args) {        Map<String, Boolean> checks = new LinkedHashMap<>();        checks.put("Platform system check passed", true);        checks.put("Laptop charged and charger plugged in", true);        checks.put("Backup hotspot ready", false);        checks.put("Webcam and microphone working", true);        checks.put("ID card on the desk", false);        checks.put("Phone off and out of reach", true);
        int ready = 0;        for (Map.Entry<String, Boolean> c : checks.entrySet()) {            System.out.println((c.getValue() ? "[x] " : "[ ] ") + c.getKey());            if (c.getValue()) ready++;        }        System.out.println(ready + " of " + checks.size() + " ready"                + (ready == checks.size() ? " - start the test" : " - fix the open items first"));    }}
Output
[x] Platform system check passed
[x] Laptop charged and charger plugged in
[ ] Backup hotspot ready
[x] Webcam and microphone working
[ ] ID card on the desk
[x] Phone off and out of reach
4 of 6 ready - fix the open items first

What this code does

  • A LinkedHashMap keeps the items in the order they were added, so the list prints like a real checklist.
  • Two open items remain. A missing hotspot only matters if the Wi-Fi fails, which is exactly when there is no time to arrange one.

Prepare the room too: a quiet place, good light on your face, a plain background, a charged laptop with the charger plugged in, a backup internet source such as a phone hotspot, and your college ID or a government ID if the instructions ask for one.

Order of execution

Prepare for test day

Put these preparation steps in a sensible order.

What counts as malpractice

Malpractice is any action that breaks the test rules to gain an unfair advantage, such as another person in the room, a second screen, searching answers online, using AI tools or sharing questions.

The block below shows what is usually allowed and what is not. If the instructions do not say it is allowed, treat it as not allowed.

Text
Allowed (if the instructions say so): rough sheet, pen, a basic calculator, waterNot allowed: phone in reach, second screen, another person, search engines,             AI chat tools, messaging apps, screenshots of questions

The cost is high. A company can cancel your result, block you from its future drives and inform your college, which may stop you from sitting for other drives that season. One shortcut can cost every opportunity, not just one.

Find the bug

Spot the rule breaker

One line in each plan breaks the rules of a proctored test. Tap it.

A plan for a proctored coding test.

Round 1 of 3
If you are unsure whether something is allowed, it is not. Ask the TPO or support before the test, not during it.

When the test freezes or the network drops

An incident report is a short, factual message to support or your TPO about a technical problem: your name, roll number, test, section, exact times and what you saw.

Technical problems happen, and platforms usually have a process. The example below builds an incident report from exact times.

Example 3 · An incident report with exact times

IncidentReportDemo.javaJava
import java.time.Duration;import java.time.LocalTime;
public class IncidentReportDemo {    public static void main(String[] args) {        LocalTime froze = LocalTime.of(10, 42, 10);        LocalTime resumed = LocalTime.of(10, 49, 30);        Duration lost = Duration.between(froze, resumed);
        System.out.println("To: Training and Placement Office");        System.out.println("Subject: Network drop during online test, roll no. 21CS045");        System.out.println("Test: Sample Tech drive, Quantitative section");        System.out.println("Screen froze at " + froze + ", resumed at " + resumed);        System.out.println("Time lost: " + lost.toMinutes() + " min " + lost.toSecondsPart() + " s");        System.out.println("Support ticket raised at 10:44 from the help link on the test page");    }}
Output
To: Training and Placement Office
Subject: Network drop during online test, roll no. 21CS045
Test: Sample Tech drive, Quantitative section
Screen froze at 10:42:10, resumed at 10:49:30
Time lost: 7 min 20 s
Support ticket raised at 10:44 from the help link on the test page

What this code does

  • Duration.between gives the time lost; toMinutes() and toSecondsPart() (Java 9 and later) split it into minutes and leftover seconds.
  • The report has everything the TPO needs to ask the company for help: who, which test, which section, exact times and the support ticket.

First stay calm and stay in front of the camera; many platforms save answers as you go and let you resume. If the problem continues, take a photo of the error only if the rules allow it, contact the support channel in the instructions and then email your TPO. A clear report with times is much easier to act on than a vague complaint later.

Predict the output

Predict the lost time

Read each program and pick what it prints.

Round 1 of 2

import java.time.LocalTime;
import java.time.temporal.ChronoUnit;
public class Freeze {
public static void main(String[] args) {
LocalTime froze = LocalTime.of(14, 5, 50);
LocalTime resumed = LocalTime.of(14, 13, 5);
long sec = ChronoUnit.SECONDS.between(froze, resumed);
System.out.println(sec / 60 + " min " + sec % 60 + " s");
}
}

Honest conduct during the test

Honest conduct means taking the test alone, with only what the instructions allow: phone off and out of reach, one screen, other apps and tabs closed, and your face visible the whole time.

Honest conduct is a short routine you can write on one card. The block below shows what to do before, during and when stuck.

Text
Before:  system check done, ID ready, charger in, hotspot ready, phone off and awayDuring:  stay in frame, stay in the test tab, read questions silentlyIf stuck: note the time, contact support, inform the TPO

The test measures where you are today. If you pass by cheating, you will face the same topics again in the technical interview, without help, in front of a person.

Next step

Check your understanding

11 quick questions