Coding · Grade 4
Variables and Expressions
Fourth graders evaluate expressions with the order of operations, trace assignments that use the current values of variables (including updating a variable from itself), turn word problems into expressions with clear variable names, and test programs that use input with several values.
- 4 lessons
- About 85 minutes
- Expressions check: 8 questions
- Ways to answer: fill in the blanks, choose an answer, put code in order, trace code, match pairs and type a number
What learners will discover
- Evaluate expressions with +, -, * and /, using brackets and the order of operations.
- Trace assignments that use the current values of variables, including updates such as score = score + 10.
- Turn a word problem into a program with clear variable names and the right expression.
- Use input values in expressions and test the program with several inputs.
Lessons
-
Expressions 4 steps2 practiceabout 16 min
-
Variables in expressions 5 steps3 practiceabout 17 min
-
Expressions for real problems 5 steps3 practiceabout 16 min
-
Input and testing 5 steps3 practiceabout 16 min
-
Expressions check 8 questions at the end
Keep exploring
Games to practice with
- Robot RoutesSnap together arrow, repeat and dance blocks to guide Bolt the robot home.
- Bug DetectiveA robot program almost works. Run it, spot the buggy block, and fix it.
- Sorting FactoryTurn a work order into if/else rules and watch the conveyor sort every item.
More 4th grade coding
- 4th Grade Coding Games5 games to play free
- 4th Grade Coding Worksheets10 printable worksheets
Guide for grown-ups
- How to start homeschooling: a step-by-step guide for familiesA guide for parents · 7 min read