Skip to the guide

The machine-coding round: format, rules and how it is marked

BeginnerConcept7 pages

In a machine-coding round you get a written statement and build a small program that has to run. Three formats explains how this differs from a design talk and gives the minutes. This page covers how the round runs from start to end, which rules of the room to ask about, and what the marks fall on.

An electrician's trade test

An apprentice electrician sits her trade test in a workshop. The examiner hands her a sheet that says exactly what to wire on a practice board: which switch works which lamp, and how each lamp must behave. She may ask questions first, and then the clock starts. The board isn't connected to any building, because the test is about her wiring, not about the building's supply. Each workshop has its own rules, such as whether she may bring her own tools or look something up.

When the time is up, the examiner turns on the power and flips the switches himself, in his own order, including some combinations she never tried. If the lamps behave, he takes off the cover and looks at the wires behind. Then he asks why she ran one wire that way, and he asks her to add one more socket.

You are the apprentice, and the examiner is your interviewer. The sheet is the statement, and its switches and lamps are the commands and output format it fixes. The board with no building behind it is a program that keeps everything in memory, with no database or network. The workshop's rules are the rules of the room, such as your language, your editor, the internet and libraries. Flipping the switches is the demo, where the interviewer's own test cases go through your driver, the short main program that runs the commands. Taking off the cover is reading your code. The question about the wire and the extra socket are the review, where you explain your code and extend it.