When he received the test back with a 27 out of 100, he knew he had bungled the questions.
"Bungle" means to carry out something unsuccessfully, leading to a failure. Since the boy in the above sentence received a low test score, he knew he failed in answering the questions correctly.