Ellie thinks she has found a bug in her program. The program is to make a toy robot stop when it gets to a wall. This is the bug:ForwardWall?Yes - ForwardNo - StopEllie corrects the code. What does she write?

🎲 Try a Random Question  |  Total Questions in Quiz: 10  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
Grades 3, 4 and 5 - Computer Science - Elementary School - Debugging — practice the complete quiz, review flashcards, or try a random question.

Writing algorithms is fun. Writing code is fun. When you have written all the code, you have a program. Then you try out the program. This is called executing the program. But does the program work? What if there are bugs in the program? A bug is a mistake. Often bugs are there because the codes are in the wrong order. So then you have to go through all the code to find the mistake. This is called the debugging cycle


Ellie thinks she has found a bug in her program. The program is to make a toy robot stop when it gets to a wall. This is the bug:<br /><br />Forward<br />Wall?<br />Yes - Forward<br />No - Stop<br /><br />Ellie corrects the code. What does she write?