This CNC coding quiz was prepared based on practical learning experience in CNC programming. While learning the basics, understanding G-codes and M-codes felt challenging at first. Remembering what each code does and when to use it required regular practice. That experience inspired the creation of this quiz to make learning easier and more structured.The quiz focuses on fundamental and commonly used commands such as G00 for rapid positioning, G01 for linear cutting, and G02 and G03 for circular interpolation. It also includes important settings like G90 for absolute programming and G21 for metric units. In addition, essential M-codes such as M03 for spindle start, M06 for tool change, and M30 for program end are covered. These commands form the foundation of CNC programming and are used frequently in real workshop environments.From my experience, practicing MCQs like these improves confidence and helps in exams, interviews, and even during practical machine operation. This quiz reflects the key concepts that I think every CNC beginner should master before moving to advanced programming.
Q1. What does G-code primarily control in a CNC machine?
Explanation: G-code controls machine motion like linear movement, circular interpolation, and feed rate.
Q2. Which G-code is used for rapid positioning?
Explanation: G00 moves the tool rapidly without cutting.
Q3. What is the function of M03 in CNC programming?
Explanation: M03 starts the spindle rotating clockwise.
Q4. Which code is used for linear interpolation?
Explanation: G01 moves the tool in a straight line at a feed rate.
Q5. What does G90 indicate?
Explanation: G90 sets absolute coordinate mode.
Q6. Which G-code is used for clockwise circular interpolation?
Explanation: G02 produces clockwise arc motion.
Q7. What does G21 specify?
Explanation: G21 sets units to millimeters.
Q8. What is the purpose of M06?
Explanation: M06 commands tool change.
Q9. Which code cancels cutter radius compensation?