Think correctly even if it may seem inconvenient, and thinking correctly becomes an ingrained habit. And then, a lot fewer bugs.
That's the analogy to the author's story about their exam.
(I'm pretty sure the "no bugs" part is just hyperbole to make a point.)