Alice has a program to make a computer do sums. There are three codes she can use:ADDSUBTRACTSHOWAlice wants the computer to add two numbers and show the result. Alice writes:ADD SUBTRACT SHOWThere is a bug in Alice’s code. What should 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


Alice has a program to make a computer do sums. There are three codes she can use:<br /><br />ADD<br />SUBTRACT<br />SHOW<br /><br />Alice wants the computer to add two numbers and show the result. Alice writes:<br /><br />ADD SUBTRACT SHOW<br /><br />There is a bug in Alice’s code. What should she write?