Skip to content
Cardinal Spellman High SchoolComputer Science Department
  • Study
  • Teacher tools
  • About

Cardinal Spellman High SchoolComputer Science Department

Developed by Farzin Khan Shifat

Go to the top of the page↑

Explore

  • Study
  • Teacher tools
  • Department

Need help?

  • Teacher guide
  • Request a tool
  • Report a problem

Your progress stays on this device. Vercel counts visits to public study pages, without your names, answers, files or grades. On a shared computer, use Forget my progress when you finish.

Study calculator

Drag this handle or use arrow keys to move the calculator. Home restores its position.

You can keep working on the page while this calculator is open. Closing keeps your calculations in this tab. Reloading clears them. This is Spellman’s study calculator, not a TI-84 emulator.

  1. ← All courses
  2. Computer Science
  3. Unit 5: Digital Representation and File Management

Lesson 1 of 5

Only Two Choices: Bits and Switches

Why computers store everything as 0s and 1s

Lessons and study tools
PracticeKey words
  1. Unit 1: Computer Hardware
    1. What Makes a Computer?
    2. Four Jobs of a Computer
    3. Data and Information
    4. CPU, RAM, and Storage
    5. Devices and Ports
    6. Choosing Hardware
    7. Hardware Review
  2. Unit 2: Computer and Internet Basics
    1. The Five Roles
    2. The Request Trip
    3. Local, Remote, and the Cloud
    4. Unit Review
  3. Unit 5: Digital Representation and File Management
    1. Current lessonOnly Two Choices: Bits and Switches
    2. Counting in Binary
    3. Same Bits, Different Meaning
    4. Pictures, Sound and Size
    5. Adding in Binary
    6. Binary Review
  1. 1Learn it
  2. 2Practice it
  3. 12343Classwork
  4. 4Homework
  5. 5Finish

Step 1 of 5: Learn it

Learn it · 1 of 10Big ideas: only two choicesNext: From switches to bitsChoose an activity

One idea at a time. Try the example, then keep going.

Big ideas · 1 of 10

Big ideas

Big ideas: only two choices

Do this: Read each idea. Then say why a computer uses only 0 and 1.

Key words

  • Key word · Unit 5BitOne 0 or 1. The SMALLEST piece of computer data.Exactly: A binary digit: a single 0 or 1. It records the state of one switch, off or on.Mix-up alert: A bit is not a byte. It takes 8 bits to make 1 byte.See this in Key words
  • Key word · Unit 5ByteA group of 8 bits.Exactly: Eight bits handled together. One byte has 256 different patterns, enough for the numbers 0 to 255.Mix-up alert: A byte is 8 bits, not the other way round. A bit is the smaller one.See this in Key words
  • Key word · Unit 5BinaryA way of writing numbers with only TWO digits: 0 and 1.Exactly: A number system where each place value is a power of two: 1, 2, 4, 8 and so on. Computers store all data in binary.Mix-up alert: 1010 in binary is ten. It is not one thousand ten.See this in Key words
  1. 1

    1. Tiny switches

    A computer is built from huge numbers of tiny electronic switches, each with two states: on or off.

  2. 2

    2. On is 1, off is 0

    We write on as 1 and off as 0. The 0s and 1s are how we write down what the switches are doing.

  3. 3

    3. One 0 or 1 is a bit

    One 0 or 1 is called a Key word · Unit 5BitOne 0 or 1. The SMALLEST piece of computer data.Exactly: A binary digit: a single 0 or 1. It records the state of one switch, off or on.Mix-up alert: A bit is not a byte. It takes 8 bits to make 1 byte.See this in Key words, the smallest piece of data a computer stores.

    1
  4. 4

    4. Eight bits make a byte

    Eight bits grouped together make a Key word · Unit 5ByteA group of 8 bits.Exactly: Eight bits handled together. One byte has 256 different patterns, enough for the numbers 0 to 255.Mix-up alert: A byte is 8 bits, not the other way round. A bit is the smaller one.See this in Key words. For example, 01000001 is one byte.

    8 bits01000001
  5. 5

    5. Why only two?

    Computers use two states because a switch can reliably be on or off. Two states are easy for the hardware to tell apart.

  6. 6

    6. Binary: only 0 and 1

    Key word · Unit 5BinaryA way of writing numbers with only TWO digits: 0 and 1.Exactly: A number system where each place value is a power of two: 1, 2, 4, 8 and so on. Computers store all data in binary.Mix-up alert: 1010 in binary is ten. It is not one thousand ten.See this in Key words is a number system that uses only two digits, 0 and 1. We use those digits to write down switch states.

    84211010

Tip: A switch is on or off. There is no halfway. That is the whole trick!

Step-through

From switches to bits

Do this: Step through the picture. Say each switch's state before you read the next step.

Eight light switches stand for eight tiny switches inside a computer. Watch how we write them down.

on = 1off = 0101100101 bit8 bits = 1 byte

Whole picture, 5 steps

5 steps. Tap a number or Show me how it works.

Step-through

Smaller and smaller switches

Do this: Step through the picture. At each stop, say what the switch was made of.

Computer logic uses switches that are on or off. Over the years the switches got smaller and faster, so computers could hold many more. The drawings are not to scale.

Mark I1944ENIAC1946Transistor1947Intel 40041971: 2,300Apple M42024: 28 billion

Whole picture, 5 steps

5 steps. Tap a number or Show me how it works.

Tip: Same job every time: on or off. Only the switch got smaller!

Step-through

How small are chip parts?

Do this: Step through the zoom. At each lens, say whether it is bigger or smaller than 54 nm.

How small are the parts of a chip? Zoom in one step at a time, from a hair down to atoms. Each lens is a bigger zoom, so the drawings are not to scale.

Hair90,000 nmBlood cell8,000 nmFlu virus100 nmGates54 nm apartDNA2.5 nmSilicon0.235 nm apart

Whole picture, 6 steps

6 steps. Tap a number or Show me how it works.

Tip: A hair is about 90,000 nm wide. In Intel's 2017 process, transistor gates were 54 nm apart. Tiny!

Fun fact: Moore's law

Do this: Read this, then say in your own words what Gordon Moore predicted.

In 1975, Gordon Moore, a co-founder of Intel, predicted that the number of parts on a chip, like transistors, would roughly double about every two years. For decades, engineers roughly kept up. It is a trend, not a law of nature. Today it is harder, so engineers also join and stack chips.

Tip: 2,300 transistors in 1971, 28 billion in 2024: about 12 million times as many!

Worked example: reading switches

Do this: Follow each step. Then read the switches yourself.

Theo looks at four switches. They read off, on, on, off.

  1. Step 1: Off is 0.
  2. Step 2: On is 1.
  3. Step 3: On is 1.
  4. Step 4: Off is 0.

He writes the pattern 0110. That is 4 bits, which is half of a byte, because a byte is 8 bits.

Worked example: how many patterns?

Do this: List the patterns for 2 switches. Then predict the count for 3.

Mia has 2 switches. She lists every pattern: 00, 01, 10 and 11. That is 4 patterns. Each extra switch doubles the count. 3 switches give 8 patterns, and 4 switches give 16. Keep doubling: 8 switches, one byte, give 256 different patterns.

Mix-up alert: a bit is not a byte

Do this: Say which one is bigger, a bit or a byte.

A bit is not 8 bytes: it is the other way round. A Key word · Unit 5ByteA group of 8 bits.Exactly: Eight bits handled together. One byte has 256 different patterns, enough for the numbers 0 to 255.Mix-up alert: A byte is 8 bits, not the other way round. A bit is the smaller one.See this in Key words is 8 bits. A Key word · Unit 5BitOne 0 or 1. The SMALLEST piece of computer data.Exactly: A binary digit: a single 0 or 1. It records the state of one switch, off or on.Mix-up alert: A bit is not a byte. It takes 8 bits to make 1 byte.See this in Key words is just one 0 or 1, so a byte is bigger. Memory trick: a bit is just a little bit.

Mix-up alert: 0 is not broken

Do this: Explain what a 0 tells you about a switch.

A 0 does not mean empty, wrong or broken. It is a normal value: that switch is off. A pattern like 0000 is still 4 bits of data.

From other sites

Watch and explore

Do this: Pick one to see the same ideas another way.

  • How Computers Work: Binary & Data

    Code.org, about 6 minutes

    Watch from 0:56 to 3:33

    Watch for:

    • What it calls one wire that is on or off; the lesson says switch, not wire
    • Why more wires mean more choices
    • The biggest number 8 wires can store
    Open on YouTube↗ (opens in a new tab)
  • How exactly does binary code work?

    TED-Ed, about 5 minutes

    Watch from 0:31 to 1:04

    Watch for:

    • Why the video says binary is reliable
    • The two voltage levels it describes
    • What happens when a voltage wobbles
    Open on YouTube↗ (opens in a new tab)Open the full lesson↗ (opens in a new tab)

Video not loading? It might be blocked on this wifi. Try it at home.

Step 2 of 5: Practice it

What is left (6 of 6)

Ready when you are.

Activity 1 of 6 · 0 of 6 activities done

Try it

Binary Drill

Do this: Answer, check, then keep going.

Try a question about bits, bytes and patterns. Show the working if you get stuck.

Streak: 0 correct in a row. This session only.

How many different patterns can 6 bits make?

Write it

Explain why only two

Do this: Write two or three sentences, then compare with the key points.

Step 1 of 3: Write

Jordan says computers use 0s and 1s because programmers like small numbers. Explain the real reason computers use only two states.

Start here if it helps: Computers use two states because...

0 words · Aim for 25 or more. This is a guide, not a limit.

Your answer is not saved anywhere. It disappears when you leave the page.

Flashcards

Bits and switches cards

Do this: Say your answer before you flip. Mark what you still need to learn.

Card 1 of 15

Bits and switches

0 Know it0 Still learning

Think of a light switch.

Deck options
Keyboard help

On the card: Enter or Space flips. Left and Right move. After revealing, 1 marks Still learning and 2 marks Know it. Tab reaches every control.

Question

What are the two states of a switch?

Answer

On and off.

Question

How do we write on and off?

Answer

On is 1 and off is 0.

Question

What is a bit?

Answer

One 0 or 1. It is the smallest piece of computer data.

Question

What is a byte?

Answer

A group of 8 bits.

Question

How many bits are in 2 bytes?

Answer

16 bits, because 2 × 8 = 16.

Question

Switches read off, on, off, on. What pattern is that?

Answer

0101. Off is 0 and on is 1.

Question

How many different patterns can 4 bits make?

Answer

16. Each extra bit doubles the count: 2, 4, 8, 16.

Question

Why do computers use only two states?

Answer

A switch can reliably be on or off, so two states are easy for the hardware to tell apart.

Question

What does binary mean?

Answer

Writing data with only two digits, 0 and 1.

Question

How many bits are in 4 bytes?

Answer

32 bits, because 4 × 8 = 32.

Question

How many bytes are 24 bits?

Answer

3 bytes, because 24 ÷ 8 = 3.

Question

Switches read on, on, on, on. What pattern is that?

Answer

1111. On is 1, so write one 1 for each of the four switches.

Question

How many patterns can 2 bits make?

Answer

4: 00, 01, 10 and 11.

Question

What does one extra bit do to the number of patterns?

Answer

It doubles it. Every existing pattern can end with the new bit off (0) or on (1), giving two choices for each pattern.

Question

Is 0000 still data?

Answer

Yes. It is 4 bits with every switch off.

True or false

Bit or byte?

Do this: Choose True or False. Read each explanation.

Statement 1 of 12

A byte is 8 bits.

Self-test

Check yourself

Do this: Answer every question. Read the explanation after each one.

8 questions. One at a time.

Practice, not a grade. No timer. Your best score stays in this browser.

Match

Match the key words

Do this: Choose a word, then choose its meaning.

Word match round

Connect the ideas

0 / 4 connected

Choose a term, then its meaning. Or drag its grip. Use Tab and Enter or Space; Escape clears.

Terms

Meanings

Step 3 of 5: Classwork

Working on paper? Open this lesson's Classwork step and choose Paper and PDF. It gives you your own empty sheet to print.

Your work trail

  1. 1Question 1Start hereCheck your answer. Hints help you try again.
  2. 2Question 2Locked
  3. 3Question 3Locked
  4. 4Question 4Locked
  5. Your exit sentenceLockedOne thing you can do, or a question you still have.
  6. Turn in on ClassroomLockedDownload your finished work, then attach it.
Before you startQuestion 1. Show all steps
  1. 1Question 1Start hereCheck your answer. Hints help you try again.
  2. 2Question 2Locked
  3. 3Question 3Locked
  4. 4Question 4Locked
  5. Your exit sentenceLockedOne thing you can do, or a question you still have.
  6. Turn in on ClassroomLockedDownload your finished work, then attach it.

One step at a time. A hint can help you try again.

Classwork

Only Two Choices: Bits and Switches

Your next step

Started on another device?

Shared computer

How saving works

  • Your answers save in this browser on this device as you go.
  • Your sentence and your name are never saved in this browser. They stay only on this page until you close it, and in a PDF you download.
  • Your teacher sees nothing until you turn it in on Google Classroom. This site can't see Classroom.
  • Anyone using this browser can see saved answers. On a shared computer, use Forget when you finish.
  • Finished work stays until the end of the school year. Unfinished work stays for 30 days.

Step 4 of 5: Homework

Homework · 10 points

Bits and Switches homework

Opening your homework…

Working on paper? Open this lesson's Homework step and choose Paper and PDF. It gives you your own empty sheet to print.

Step 5 of 5: Finish

Ready to move on?

Practice it: You did 0 of 6 activities.

You decide when you have finished. This is your study progress, not a grade.

Not marked finished yet.

Next lesson: Counting in BinaryUnit 5: Digital Representation and File Management
TOPICDONE
Published with approval from Mr. Farzin Khan Shifat. Last updated October 28, 2026.
For teachers: post this lesson in Classroom

Two ready posts. Nothing is saved or sent. Make one Classroom assignment for each step you assign, using the points shown below and its own due date. Copy its post and paste it into the assignment's instructions.

  • 1234Classwork

    Worth 10 points.

    https://gradebridge-beryl.vercel.app/learn/csc/digital-representation-and-files/bits-and-switches#classwork

  • Homework

    Worth 10 points.

    https://gradebridge-beryl.vercel.app/learn/csc/digital-representation-and-files/bits-and-switches#homework

After students turn it in →, open Check student work

Download their files from the assignment's Drive folder, then open them in Check student work.