CNC test prep

CNC operator test questions

CNC operator tests, written or practical, keep returning to the same codes: motion (G00 to G03), G90/G91, G54, G43 and cutter compensation, the drilling cycles and G80, and the M-codes for spindle, coolant, tool change and stops. Below are typical questions with answers, then a quiz on those codes.

Typical questions, with answers

These are the kind of questions written tests and interviews ask. Try each before opening the answer.

1. Which code moves the machine at rapid, not cutting?

G00, rapid positioning. Moves to a point at full rapid speed, not cutting.

2. A program has G91 active and the next line is G00 X10. What happens?

G91, incremental positioning. The tool moves 10 mm further in +X from where it is, not to X10.

3. Which code turns on tool length compensation, and which word goes with it?

G43, tool length compensation +. G43 with an H word, usually matching the tool number.

4. What is the difference between M00 and M01?

M01, optional stop. M00 always stops; M01 stops only when Optional Stop is switched on.

5. Which canned cycle pulls the drill fully out of the hole after every peck?

G83, deep hole peck drilling. Pecks Q deep and retracts fully out of the hole each time.

6. Why is G28 usually written as G91 G28 Z0?

G28, return to reference position. G28 goes home by way of the point on the line. With G91 and Z0 that point is the current position, so the tool goes straight up instead of first moving to work Z0.

7. On a lathe, what must come before G96 constant surface speed?

G50, maximum spindle speed (lathe). A G50 S limit, so the spindle cannot over-speed as the tool nears the centre.

8. Which code cancels a drilling cycle?

G80, canned cycle cancel. Cancels the active drilling or tapping cycle.

What practical tests add

  • Reading a program. You get a short program and explain what each line does, or find the line that would crash.
  • Setting offsets. Touching off a work offset and a tool length, and checking them before running.
  • Proving out a first part. Single block, Optional Stop (M01), reduced rapid, and checking dimensions before production.

The common G-codes page walks through a complete program line by line, which is good practice for the reading part.

Practice test: the codes tests ask about

Ten questions from the core and common codes.

Question 1 of 10Score 0

Mill: what does this code do?

G85

Keep going with saved progress and review of missed codes

More practice hubs

Frequently asked questions

What G-code questions are on a CNC operator test?
Mostly the core codes: what G00, G01, G02 and G03 do, absolute versus incremental (G90, G91), work offsets (G54), tool length and cutter compensation (G43, G41, G42, G40), drilling cycles (G81, G83, G80), and the common M-codes for spindle, coolant, tool change and stops. Practical tests add reading a short program and spotting the error.
Do I need to memorise G-codes for a CNC test?
For the core codes, yes: written and practical tests expect you to know them without looking them up. Rare codes and controller-specific options are usually looked up in the manual, on the test as on the job.
How should I prepare for a CNC practical test?
Read short programs line by line until every code is familiar, know your safety line and why each code in it is there, and practise the setup steps: work offset, tool length, first-part checks with Optional Stop.

G-Code Sprint is an educational practice tool only. It is not a CNC simulator, machine controller, safety manual, or replacement for instruction. Always follow your instructor, employer, machine manual, and shop procedures.

Free preview · no card Try G-Code Sprint