FlashKeepers

Coding for Kids · K-12 · School

Coding for Kids: Debugging Basics

What a bug is and simple strategies kids can use to find and fix mistakes in their code.

About this set

24 basic cards for K-12 Coding for Kids. Set 4 of 7 in Coding for Kids. It opens with "What is a bug in computer code?" and "What is a syntax error?". Study it alongside the other K-12 sets below.

24 cards · basic cards · AI-written, checked twice. Edit anything.

Study this set free Look inside first Get FlashKeepers for iPhone

Opens in your browser, no account. Get the iPhone and iPad app · Android app

What is a bug in computer code?
Show answerA mistake or error that makes the program not work as planned.
What is a syntax error?
Show answerA mistake in how you write the code, like wrong punctuation, spelling, or symbols.
What is a logic error?
Show answerThe code runs but does not do what you wanted it to do.
What is a print statement?
Show answerA command that shows a message on the screen to help you see what your code is doing.
What does it mean to test your code?
Show answerRunning your code to see if it works the way you expect.
What should you check first when code does not work?
Show answerRead the error message to see what went wrong.
What is rubber duck debugging?
Show answerExplaining your code out loud to a rubber duck or anyone to find your own mistake.
What is a variable in code?
Show answerA container that stores a value you use in your program.
What happens if you misspell a variable name?
Show answerThe code may not work because the computer cannot find that variable.
What is an infinite loop?
Show answerA loop that never stops running because the ending condition is never true.
Why should you write one small part of your code at a time?
Show answerSo you can test each part and find bugs more easily.
What does an off-by-one error mean?
Show answerWhen your count or loop goes one number too high or too low.
What should you do before making big changes to your code?
Show answerSave a copy of the version that worked.
What is a compile error?
Show answerAn error that happens when the computer tries to read your code because the code is not written correctly.
What is a runtime error?
Show answerAn error that happens while your program is running.

9 more cards in the app

Study this set free