Bits and the binary digits 0 and 1
A bit is a single binary digit that is either 0 or 1, like a switch that is off (0) or on (1). A group of 8 bits is called a byte.
Understanding Bits and the binary digits 0 and 1 in Years 5–6 Data & Information
What it does: This code has 8 binary digits, so it shows one byte made of 8 bits. The variable bit holds just one binary digit, and 1 is one of the two allowed values. A bit is a single binary digit, so it can only be 0 or 1. In binary, 1 means on and 0 means off. 0 is off. A bit is like a switch that is either off (0) or on (1). A byte is a group of 8 bits. 01101001 has 8 bits, so it is a byte. 0110 only has 4 bits. A bit has two states, 0 (off) and 1 (on), just like a switch.
Common mistakes: A bit of 1 means on, so when bit == 1 the program should print "on", not "off". A bit can only be 0 or 1. The 2 is not a bit, so it should be bits = [0, 1, 1, 0].
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 1–10) and word search (Modules 1–20).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
bitFill in the Blanks
Spot the Error
Student with a class code? Join your class →