eurekami
Bugs in the Code
3rd grade reading
Name
Date
Score/ 6
Bugs in the Code
Theo had been looking forward to Coding Club all week. Ms Rivera had promised they would make their own animated story on the classroom tablets.
Theo chose a cartoon cat and wrote the code: when the green flag is clicked, move ten steps, then turn and wave. He clicked the flag. The cat spun round and round like a washing machine and never stopped.
"It's broken!" Theo groaned, and he pushed the tablet away.
Ms Rivera sat down beside him. "It's not broken," she said. "It's got a bug. Every coder gets bugs. The trick is to be a detective." Together they read the code one block at a time. Theo had put the turn block inside a forever loop by mistake, so the cat kept turning for ever.
Theo dragged the block out of the loop and clicked the flag again. The cat walked ten steps, turned and waved. Theo cheered so loudly that the whole club looked up.
The next week, a younger girl called Ivy was close to tears because her rocket would not take off. Theo pulled up a chair. "It's not broken," he told her. "It's got a bug. Let's be detectives."
Question 1
Read "Bugs in the Code". What went wrong with Theo's cat at first?
- A. It spun round and round and never stopped.
- B. It turned into a rocket.
- C. It disappeared from the screen.
- D. It would not move at all.
Question 2
Read "Bugs in the Code". In this story, what is a "bug"?
- A. a mistake in the code
- B. an insect in the classroom
- C. a broken tablet
- D. a kind of cartoon
Question 3
Read "Bugs in the Code". How does Theo feel when the cat keeps spinning?
- A. proud
- B. calm
- C. sleepy
- D. frustrated
Question 4
Read "Bugs in the Code". What lesson does Theo learn?
- A. Computers never make mistakes.
- B. Mistakes can be found and fixed if you look carefully.
- C. Coding is only for older children.
- D. You should give up when something goes wrong.
Question 5
Read "Bugs in the Code". Why does Theo say the same words to Ivy that Ms Rivera said to him?
- A. He wants to help her the way he was helped.
- B. He has forgotten what to say.
- C. He wants to show off.
- D. He thinks Ivy's tablet is broken.
Question 6
Read "Bugs in the Code". What kind of text is this?
- A. a biography
- B. realistic fiction
- C. fantasy
- D. instructions
Free from eurekami.com/english/reading