Computer Science Grade 2 20 min

The Misspelled Word

Identifying a simple misspelled word.

Tutorial Preview

1

Introduction & Learning Objectives

Learning Objectives Define the word 'bug' as a mistake in code. Define 'debugging' as finding and fixing bugs. Identify a misspelled word in a short sequence of instructions. Correct a simple spelling bug in a code block. Explain why correct spelling is important for computers. Check code step-by-step to find a mistake. Have you ever played 'spot the difference'? 🤔 Finding a bug in code is just like that! We will learn about little mistakes in computer code called 'bugs'. 🐞 Then, we will become bug detectives to find and fix them! This is called debugging. Real-World Applications Fixing a word in a text message 📱 Following a recipe step-by-step 🍪 Building a LEGO set with instructions 🧱 Finding a mistake on a math proble...
2

Key Concepts & Vocabulary

TermDefinitionExample Bug 🐞A bug is a mistake or an error in the code.The code says `CAT` but you wanted it to say `CAR`. Code 💻Code is a set of instructions for a computer.A list of words for a robot to say: `APPLE`, `BALL`, `CAT`. Debugging 🕵️Debugging is the job of finding and fixing bugs.You find the word `APLE` and change it to `APPLE`. ProgramA program is all the code put together to do a job.A game that makes a cat meow when you click it. SequenceA sequence is the order that instructions happen.First, stand up. Second, stretch. Third, sit down. InstructionAn instruction is one single step in your code.The block that says `MOVE FORWARD`.
3

Core Syntax & Patterns

The One-Step-at-a-Time Rule 🐾 Start at the beginning. Check each instruction one by one. Use this rule to make sure you don't miss any bugs. Don't skip ahead! The Match-the-Plan Rule ✅ Compare your code to what you WANT it to do. Always have a plan. Check if your code matches your plan exactly. The Test-Again Rule 🚀 After you fix a bug, always run the program again. This helps you make sure your fix worked and didn't create a new bug.

4 more steps in this tutorial

Sign up free to access the complete tutorial with worked examples and practice.

Sign Up Free to Continue

Sample Practice Questions

Challenging
A robot is coded to draw a square (4 sides). It only draws one line and stops. Which of these is the MOST LIKELY 'misspelled word' bug?
A.The REPEAT block says 'REPETE'
B.The MOVE FORWARD block says 'MOVE FORWRD'
C.The TURN RIGHT block says 'TURN RITE'
D.The number in the REPEAT block is 1 instead of 4
Challenging
You are teaching a friend how to avoid misspelled word bugs. What is the BEST rule to tell them?
A.Always use very short words.
B.Type very fast so you finish quickly.
C.Only code when you are not tired.
D.Double-check the spelling of every block against a list of correct commands.
Challenging
Why can't a computer understand that 'MVE' should mean 'MOVE'?
A.Because the computer only knows the exact words it was taught
B.Because the computer is not very smart
C.Because 'MVE' is a secret code for something else
D.Because the screen is too bright

Want to practice and check your answers?

Sign up to access all questions with instant feedback, explanations, and progress tracking.

Start Practicing Free

More from Finding the Missing Piece: Introduction to Debugging

Ready to find your learning gaps?

Take a free diagnostic test and get a personalized learning plan in minutes.