wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

U2/L4 Kira HS

Total questions: 17

Worksheet time: 9mins

Name
Class
Date
1.

Which of the following is a way to remember facts from the videos in this lesson?

a)

Write down facts you learned from the videos in this lesson.

b)

Ignore the videos and rely on memory alone.

c)

Only watch the videos without taking notes.

d)

Ask someone else to remember the facts for you.

2.

A ______________ is an error or flaw in a computer program that causes it to produce incorrect or unexpected results.

a)

bug

b)

feature

c)

update

d)

patch

3.

_______________ is the process of identifying, analyzing, and removing bugs from a computer program.

a)

Debugging

b)

Compiling

c)

Designing

d)

Encrypting

4.

Bugs can happen for many reasons, including: Typos in ______________

a)

code

b)

hardware

c)

music

d)

weather

5.

Bugs can happen for many reasons, including:

a)

Typos in code, incorrect logic, and forgetting to close parentheses.

b)

Typos in language, incorrect logic, and forgetting to close parentheses.

c)

Typos in code, incorrect typing, and forgetting to close parentheses.

d)

Typos in programs, incorrect fingers, and forgetting to close parentheses.

6.

Bugs can happen for many reasons, including: Forgetting to close ______________ or add necessary punctuation

a)

quotation marks (or parentheses)

b)

variables

c)

functions

d)

loops

7.

In the "Platypus Bugs" activity, you explored different types of ______________ that caused the code to behave unexpectedly.

a)

bugs

b)

functions

c)

loops

d)

variables

8.

Debugging helps programmers make sure their programs run ______________ and produce the right results.

a)

correctly

b)

slowly

c)

randomly

d)

incorrectly

9.

A helpful way to improve your debugging skills is through ______________, where you review what happened and what you can try next.

a)

reflection

b)

guesswork

c)

memorization

d)

procrastination

10.

One strategy for finding a bug is to read through your code ______________, one line at a time.

a)

carefully

b)

quickly

c)

randomly

d)

loudly

11.

Another strategy is to use ______________ statements to check if parts of your code are working as expected.

a)

print

b)

delete

c)

input

d)

break

12.

Good debugging involves trying different solutions and learning from each ______________.

a)

mistake

b)

success

c)

shortcut

d)

guess

13.

One thing I did to fix my code when it didn’t work during the lesson was:

a)

Checked my code for errors and fixed them.

b)

Ignored the problem and moved on.

c)

Deleted all my code and started over without checking.

d)

Asked someone else to do it for me without trying myself.

14.

Reflection is important when debugging a program because:

a)

it helps identify and understand errors in the code.

b)

it automatically fixes all bugs in the program.

c)

it eliminates the need for testing.

d)

it makes the program run faster.

15.

What is a good way to encourage a friend who says, “I’m bad at coding because I keep getting bugs?”

a)

Remind them that everyone gets bugs and it’s part of learning.

b)

Tell them to stop coding if they get bugs.

c)

Agree that they are bad at coding.

d)

Ignore their concerns.

16.

Reflection helps you understand what went wrong and how you solved it, so you can do better next time. What is the main benefit of reflection?

a)

It helps you improve in the future.

b)

It makes you forget mistakes.

c)

It prevents you from making any mistakes ever again.

d)

It guarantees success every time.

17.

Everyone gets bugs—it's a normal part of learning to code. Debugging is how we get better! What is debugging?

a)

Fixing errors in code

b)

Writing new code

c)

Ignoring problems in code

d)

Deleting all code