LAB-DAT-101 · Digital foundations

Bits, bytes and binary - made practical.

Use the switches, solve the conversions and test your understanding. By the end, you will know why a byte has eight bits and when a capital B changes the meaning of a measurement.

Estimated time: 25 minutes · No sign-in or cloud environment required

Lab summary

Build a usable mental model of digital data.

  • Explain the difference between a bit and a byte.
  • Read an eight-bit binary value and calculate its decimal value.
  • Convert bits to bytes and bytes to bits accurately.
  • Distinguish data rates, storage units, kB and KiB.

Module 1

Build a byte from eight switches.

A bit is the smallest unit of digital data. It can be off (0) or on (1). A byte is simply eight of those bits together.

Bit

0 or 1

Think of one bit as one light switch: it has two possible states.

Byte

8 bits

Eight switches make a byte. Each position has a different value.

Byte range

0-255

Eight bits can represent 256 distinct values: 0 through 255.

Interactive switch builder

Make the target number.

Set the switches to make 178 in decimal. Use the values above each switch to decide which bits must be on.

128
64
32
16
8
4
2
1
Binary00000000
Decimal0
CalculationNo active bits

Module 2

Convert without guessing.

The relationship never changes: divide by eight to convert bits to bytes; multiply by eight to convert bytes to bits.

Bits to bytesbits ÷ 8 = bytes
Bytes to bitsbytes × 8 = bits

Conversion challenge 1 of 3

Show the working, then check it.

512 bits equals how many bytes?

Module 3

Read the small symbols that change the meaning.

A lower-case b means bit; an upper-case B means byte. That difference matters when comparing a connection speed with a file size.

b

bit

Used for data rates, for example 100 Mbps.

B

byte

Used for file sizes, for example 100 MB.

8:1

Relationship

100 Mbps is at most 12.5 MB/s before overhead.

Quick calculator

Convert a connection rate to a theoretical file-transfer rate.

Enter megabits per second (Mbps). The calculator divides by eight to show megabytes per second (MB/s), before protocol and storage overhead.

12.5 MB/s

Notation check

Choose the precise interpretation.

A 160 Mbps connection has an ideal maximum transfer rate closest to:
Is the statement “1 KB always means exactly 1,024 bytes” precise?

Important distinction: decimal kB is 1,000 bytes, while binary KiB is 1,024 bytes. Some products use the labels inconsistently, so read the documentation and context.

Module 4

Prove the foundations are in place.

Score at least four of five questions to complete this short lab. You can review and retry as often as you need.

1 How many bits make one byte?

2 96 bits equals:

3 4 bytes equals:

4 Which notation is correct?

5 Which label unambiguously means 1,024 bytes?