The principle is the same, the machine directly through the optical character recognition (OCR) technology. Multiple-choice questions are compared with images generated by pre-stored answers after scanning, and the matching parts are scored, and the mismatches are errors.
But your drawing problem was changed by people, not by machines. If your pencil is shallow, you can sweep it in, but the marking teacher may not see it clearly.