Computer Science
Grade 1
20 min
What is Coding?
What is Coding?
Tutorial Preview
1
Introduction & Learning Objectives
Learning Objectives
Define 'coding' as giving instructions to a computer.
Identify that computers need step-by-step instructions.
Explain that an 'algorithm' is a list of steps.
Create a simple sequence of 3-5 instructions for a task.
Follow a simple algorithm to complete a task.
Recognize that the order of instructions is very important.
Have you ever told a grown-up how to build your favorite toy? ๐งธ That's like coding!
Today, we will learn about coding. Coding is a special language we use. It tells computers what to do.
Real-World Applications
Playing a video game on a tablet ๐ฎ
Watching a cartoon on TV ๐บ
A toy robot that moves and talks ๐ค
A traffic light changing colors ๐ฆ
2
Key Concepts & Vocabulary
TermDefinitionExample
CodingCoding is writing instructions for a computer. ๐ปTelling a character in a game to jump is coding.
InstructionAn instruction is one single step. ๐พA simple instruction is 'take one step forward'.
SequenceA sequence is putting instructions in the right order. โก๏ธFirst, get the paper. Second, get the crayon.
AlgorithmAn algorithm is a list of steps to finish a task. ๐The steps to brush your teeth is an algorithm.
ProgramA program is all the code for one big task. ๐พYour favorite game app is a program.
BugA bug is a mistake in the code. ๐Telling a robot to go left instead of right is a bug.
3
Core Syntax & Patterns
Rule 1: Order Matters!
Instructions must be in the correct 1, 2, 3 order.
You put on socks THEN shoes. Computers need the right order too! ๐งฆ๐
Rule 2: Be Super Clear!
Computers only do exactly what you tell them to do.
Don't just say 'get the fruit'. Say 'get the red apple'. ๐
Rule 3: One Step at a Time
Give the computer one simple instruction at a time.
This helps the computer understand what you want it to do.
4 more steps in this tutorial
Sign up free to access the complete tutorial with worked examples and practice.
Sign Up Free to ContinueSample Practice Questions
Challenging
You are coding a game where a cat ๐ chases a mouse ๐. What is the most important FIRST instruction for the cat's algorithm?
A.Find where the mouse is
B.Take a nap
C.Run in a circle
D.Change its color
Challenging
A robot's code says: 'Pick up the red ball'. But there are only blue balls. What will most likely happen?
A.The robot will pick up a blue ball instead
B.The robot will paint a blue ball red
C.The robot will stop and show an error or do nothing
D.The robot will fall over
Challenging
Look at this pattern: ๐ด๐ต๐ด๐ต๐ด๐ต... What is the code to make this pattern go on FOREVER?
A.Code: Draw ๐ด. Then stop.
B.Code: REPEAT FOREVER (Draw ๐ด, Draw ๐ต)
C.Code: Draw ๐ด, Draw ๐ต, Draw ๐ด, Draw ๐ต
D.Code: Draw ๐ต. Then stop.
Want to practice and check your answers?
Sign up to access all questions with instant feedback, explanations, and progress tracking.
Start Practicing Free