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

Topic 6 of 6

Binary Review

Check bits, binary, codes, pictures and sizes before a test

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. Only Two Choices: Bits and Switches
    2. Counting in Binary
    3. Same Bits, Different Meaning
    4. Pictures, Sound and Size
    5. Adding in Binary
    6. Current lessonBinary Review
  1. 1Learn it
  2. 2Practice it
  3. 3Finish

Step 1 of 3: Learn it

Learn it · 1 of 14Recap: bits and bytesNext: Mix-up alert: a bit is not a byteChoose an activity

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

Big ideas · 1 of 14

Big ideas

Recap: bits and bytes

Do this: Say what one bit and one byte mean.

  1. 1

    1. Bits and bytes

    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 one 0 or 1; 8 bits 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. We use 0 for off and 1 for on. Switches can reliably be in these two states.

    1

Mix-up alert: a bit is not a byte

Do this: Read the warning. Then explain the correct idea.

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 not a byte. One bit is one 0 or 1. 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 a group of 8 bits.

Big ideas

Recap: binary place values

Do this: Use the place values to read a pattern and write a number.

  1. 1

    1. Binary place values

    Binary Key word · Unit 5Place valueWhat a digit is worth because of WHERE it sits.Exactly: In binary, the columns from right to left are worth 1, 2, 4, 8, 16, 32, 64 and 128. Each column is worth double the one to its right.Mix-up alert: A 1 in the 8s place is worth 8. A 1 in the 1s place is worth only 1.See this in Key words double from right to left: 1, 2, 4, 8, 16, 32, 64, 128. Left to right, a 4-bit number uses 8, 4, 2, 1.

    84210100
  2. 2

    2. Binary to decimal

    To Key word · Unit 5ConvertChange how a number is WRITTEN without changing how much it is.Exactly: Binary to decimal: add the place values that have a 1. Decimal to binary: take the biggest place value that fits, write 1, subtract, and keep going.Mix-up alert: Converting changes the writing, not the amount. 1011 in binary and 11 in decimal are the same amount.See this in Key words binary to decimal, add the place values that have a 1. Keep the place values above the digits as you work.

    101111
  3. 3

    3. Decimal to binary

    To Key word · Unit 5ConvertChange how a number is WRITTEN without changing how much it is.Exactly: Binary to decimal: add the place values that have a 1. Decimal to binary: take the biggest place value that fits, write 1, subtract, and keep going.Mix-up alert: Converting changes the writing, not the amount. 1011 in binary and 11 in decimal are the same amount.See this in Key words decimal to binary, try each place from biggest to smallest; write 1 and subtract if it fits, otherwise write 0. Keep every position, including leading zeros.

    101111

Worked example: read 1101

Do this: Follow each step. Then explain the working.

Read 1101 using place values, left to right: 8, 4, 2, 1.

  1. Step 1: Line up the digits: 1 under 8, 1 under 4, 0 under 2 and 1 under 1.
  2. Step 2: Add the places with a 1.

The total is 8 + 4 + 1 = 13.

Worked example: write 11 in binary

Do this: Follow each step. Then explain the working.

Write 11 in 4 bits: places 8, 4, 2, 1.

  1. Step 1: 8 fits: write 1, leaving 3.
  2. Step 2: 4 does not fit in 3: write 0.
  3. Step 3: 2 fits: write 1, leaving 1.
  4. Step 4: 1 fits: write 1, leaving 0.

The digits are 1011; check: 8 + 2 + 1 = 11.

Mix-up alert: 1010 is not one thousand ten

Do this: Read the warning. Then explain the correct idea.

1010 in 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 not one thousand ten. Use place values 8, 4, 2, 1, left to right. Add the places with a 1: 8 + 2 = 10.

Big ideas

Recap: an agreed code

Do this: Say which rule gives a bit pattern its meaning.

  1. 1

    1. One pattern, different rules

    An Key word · Unit 5EncodingAn AGREED RULE that gives bit patterns a meaning.Exactly: A set of rules for turning information into bits and back again. The reader must use the same encoding as the writer.Mix-up alert: Bits do not carry their meaning inside them. The same pattern can mean different things under different encodings.See this in Key words is an agreed rule: 0110 can mean 6 as a number or right, then down as moves. Place values: 8, 4, 2, 1 give 0 + 4 + 2 + 0 = 6. Direction code: 00 up, 01 right, 10 down, 11 left. Split 0110 into 01 and 10. The reader must use the same rule as the writer.

    01000001A
  2. 2

    2. Letters as number codes

    Letters are stored as number codes; in ASCII, A is 65, written 01000001.

Mix-up alert: bits need a rule

Do this: Read the warning. Then explain the correct idea.

Bits do not carry a meaning on their own. An Key word · Unit 5EncodingAn AGREED RULE that gives bit patterns a meaning.Exactly: A set of rules for turning information into bits and back again. The reader must use the same encoding as the writer.Mix-up alert: Bits do not carry their meaning inside them. The same pattern can mean different things under different encodings.See this in Key words gives them meaning. The writer and reader must use the same rule. A pattern can mean a number under one rule and moves under another.

Mix-up alert: a character is not always one byte

Do this: Explain when you may count one byte per character.

A Key word · Unit 5CharacterOne letter, digit, space or symbol in text.Exactly: A single unit of text, such as A, 7, a space or a question mark. ASCII gives each character a number code. In these activities, assume one byte per capital letter: A is 65, written 01000001.Mix-up alert: A character is not always exactly one byte in real text. When a question says "assume one byte per character", that is a rule for that question.See this in Key words is not always exactly one byte in real text. In these activities, we assume one byte per capital letter. When a question says "assume one byte per character", that is a rule for that question.

Big ideas

Recap: pictures and size

Do this: Use the size rule to check the worked example.

  1. 1

    1. Pictures and colors

    A picture is a grid of Key word · Unit 5PixelOne tiny square of color in a digital picture.Exactly: The smallest dot in the grid that makes up a digital image. Each pixel's color is stored as one or more bits.Mix-up alert: More bits per pixel means more possible colors, not more pixels. More stored bits do not guarantee a better-looking picture.See this in Key words; more bits per pixel give more possible colors. For black and white, use 1 bit per pixel: 0 white, 1 black.

  2. 2

    2. What we count

    Count Key word · Unit 5PixelOne tiny square of color in a digital picture.Exactly: The smallest dot in the grid that makes up a digital image. Each pixel's color is stored as one or more bits.Mix-up alert: More bits per pixel means more possible colors, not more pixels. More stored bits do not guarantee a better-looking picture.See this in Key words data only; ignore headers (file details), padding (extra space) and compression (ways to shrink files).

  3. 3

    3. Pixel data to bytes

    For Key word · Unit 5PixelOne tiny square of color in a digital picture.Exactly: The smallest dot in the grid that makes up a digital image. Each pixel's color is stored as one or more bits.Mix-up alert: More bits per pixel means more possible colors, not more pixels. More stored bits do not guarantee a better-looking picture.See this in Key words data only, width × height × bits per pixel ÷ 8 gives bytes; ignore headers, padding and compression. Round the total up to whole bytes only when the bits do not divide evenly by 8.

  4. 4

    4. Round only when needed

    Round up to a whole 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 only when the total bits do not divide evenly by 8. Round the total, not each row.

    8 bits01000001

Worked example: picture data in bytes

Do this: Follow each step. Then explain the working.

A picture is 12 × 8 pixels at 8 bits per pixel. Pixel data only: ignore headers, padding and compression.

  1. Step 1: Pixels: 12 × 8 = 96.
  2. Step 2: Bits: 96 × 8 = 768.
  3. Step 3: Bytes: 768 ÷ 8 = 96.

The pixel data needs 96 bytes; no rounding is needed.

Mix-up alert: bigger is not always better

Do this: Explain why file size alone cannot tell you how good a picture looks.

A bigger picture file is not always a better picture. Key word · Unit 5Storage sizeHow much space data takes up, measured in bits, bytes, KB, MB or GB.Exactly: 8 bits make 1 byte. In this course, 1 KB is 1,000 bytes, 1 MB is 1,000 KB and 1 GB is 1,000 MB. Some computers count 1,024 instead of 1,000. For picture calculations, count pixel data only: ignore headers, padding and compression. Divide the total bits by 8 and round up to whole bytes only if they do not divide evenly.Mix-up alert: A bigger file is not always a better picture. Size depends on the number of pixels, the bits per pixel and the file format.See this in Key words depends on the number of pixels, the bits per pixel and format choices. More stored bits do not guarantee a better-looking picture.

Big ideas

Recap: sound and storage

Do this: Say how a computer stores sound. Then put the storage units in order.

  1. 1

    1. Sound measurements

    A computer measures a sound wave many times a second and stores each measurement as a number written in 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. More measurements follow the wave more closely and take more storage.

    1
  2. 2

    2. More bits per measurement

    Using more 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 for each sound measurement records it more precisely and also takes more storage.

    1
  3. 3

    3. Storage sizes in order

    From smallest to largest: bit → byte → KB → MB → GB.

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 for:

    • The place values the video uses
    • This video uses its own letter code (A is 1), not ASCII (A is 65)
    • What the video says everything comes down to
    Open on YouTube↗ (opens in a new tab)

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

Step 2 of 3: Practice it

What is left (6 of 6)

Ready when you are.

Activity 1 of 6 · 0 of 6 activities done

Checklist

Night-Before Checklist

Do this: Check a box only when you can explain it without looking. Use Go study this for anything you need to practice.

0 of 12 checked

  • Study
  • Study
  • Study
  • Study
  • Study
  • Study
  • Study
  • Study
  • Study
  • Study
  • Study
  • Study

Tip: An unchecked box is a useful clue. Study that part, then try explaining it again.

Try it

Binary Drill

Do this: Answer, check, then keep going.

Practice conversions, bits and bytes, bit patterns and picture sizes. For pictures, count pixel data only. Keep going as long as you like.

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

Place values
1286432168421
00000110

What decimal number is 00000110?

Self-test

Binary self-test

Do this: Choose an answer, then read the explanation. Return to the checklist for anything you need to study.

16 questions. One at a time.

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

Tip: This is practice, not a grade. Explain why an answer fits, not just which one you picked.

Checklist

Night-Before Checklist: adding

Do this: Explain each idea without looking. Go back to the lesson for any unchecked box.

0 of 4 checked

  • Study
  • Study
  • Study
  • Study

Self-test

Adding: fresh review questions

Do this: Work each sum on paper first. Then choose and explain your answer.

5 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 3: 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.

Unit 5: Digital Representation and File Management
TOPICDONE
Published with approval from Mr. Farzin Khan Shifat. Last updated October 27, 2026.