Practice Audio Representation in CS Thinking

Use these practice problems to test your method after reviewing the concept explanation and worked examples.

Quick Recap

Audio representation is the way a computer stores sound as numeric data. Digital audio is usually created by sampling a sound wave many times each second and storing each sample with a certain number of bits.

Sampled sound works like a flip-book: still drawings shown fast enough look like smooth motion. More pages per second (a higher sample rate) catch quicker movements, and more precise drawings (more bits per sample) show finer positions. Adding pages does not make the drawings any bigger, just as a higher sample rate does not make the sound louder.

Showing a random 20 of 50 problems.

Example 1

easy
8-bit audio gives 256 amplitude levels. How many levels does 1 extra bit (9-bit) provide?

Example 2

hard
A recording at 8000 Hz tries to capture a 6000 Hz tone. Does it succeed? Why or why not?

Example 3

challenge
An audio engineer must fit 3 minutes of stereo audio into 5 MB (1 MB=8,000,000 bits). If bit depth is 16 and 2 channels, what maximum sample rate (Hz) is allowed?

Example 4

medium
A WAV file is 50 MB; the MP3 of the same song is 5 MB. State the compression ratio.

Example 5

easy
If you increase the sample rate, what audio property improves?

Example 6

easy
A digital audio file stores sound as what?

Example 7

easy
A mono recording samples at 1000 Hz with 8-bit samples. What is the bit rate in bits per second?

Example 8

easy
A stereo clip samples at 100 Hz, 16-bit. What is its bit rate?

Example 9

challenge
Explain why doubling sample rate alone improves time-resolution of transients but not the steady-state pitch of a 440 Hz tone.

Example 10

medium
A 30-second stereo recording at 44100 Hz, 16-bit. File size in megabytes (1 MB=8,000,000 bits)?

Example 11

easy
How many channels does stereo audio store?

Example 12

medium
A 1-minute CD-quality stereo recording (44100 Hz, 16-bit, 2 ch) takes how many megabytes (1 MB=8,000,000 bits)?

Example 13

hard
Compare storage for 1 minute of audio at (A) 48000 Hz/24-bit/stereo vs (B) 16000 Hz/8-bit/mono. By what factor is A larger?

Example 14

easy
A stereo clip records at 100 Hz, 8-bit. What is the bit rate?

Example 15

hard
A podcast must fit 30 minutes of mono audio into 10 MB (1 MB=8,000,000 bits) at 16-bit. What is the maximum sample rate (Hz)?

Example 16

medium
Clip A: 22050 Hz, 8-bit, mono. Clip B: same except 16-bit. By what factor is B larger than A?

Example 17

medium
A 5-minute stereo song at 44100 Hz, 16-bit. How many total samples (across both channels)?

Example 18

medium
CD-quality audio is 44100 Hz, 16-bit, stereo. Compute the bit rate in bits per second.

Example 19

medium
Telephone audio: 8000 Hz, 8-bit, mono. How many bytes for a 10-second call?

Example 20

medium
To capture frequencies up to 15000 Hz, what is the minimum sample rate by Nyquist?