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
easy8-bit audio gives 256 amplitude levels. How many levels does 1 extra bit (9-bit) provide?
Example 2
hardA recording at Hz tries to capture a Hz tone. Does it succeed? Why or why not?
Example 3
challengeAn audio engineer must fit 3 minutes of stereo audio into 5 MB ( bits). If bit depth is 16 and 2 channels, what maximum sample rate (Hz) is allowed?
Example 4
mediumA WAV file is 50 MB; the MP3 of the same song is 5 MB. State the compression ratio.
Example 5
easyIf you increase the sample rate, what audio property improves?
Example 6
easyA digital audio file stores sound as what?
Example 7
easyA mono recording samples at 1000 Hz with 8-bit samples. What is the bit rate in bits per second?
Example 8
easyA stereo clip samples at 100 Hz, 16-bit. What is its bit rate?
Example 9
challengeExplain why doubling sample rate alone improves time-resolution of transients but not the steady-state pitch of a Hz tone.
Example 10
mediumA 30-second stereo recording at Hz, -bit. File size in megabytes ( bits)?
Example 11
easyHow many channels does stereo audio store?
Example 12
mediumA 1-minute CD-quality stereo recording (44100 Hz, 16-bit, 2 ch) takes how many megabytes ( bits)?
Example 13
hardCompare storage for 1 minute of audio at (A) Hz/-bit/stereo vs (B) Hz/-bit/mono. By what factor is A larger?
Example 14
easyA stereo clip records at 100 Hz, 8-bit. What is the bit rate?
Example 15
hardA podcast must fit 30 minutes of mono audio into 10 MB ( bits) at -bit. What is the maximum sample rate (Hz)?
Example 16
mediumClip A: Hz, -bit, mono. Clip B: same except -bit. By what factor is B larger than A?
Example 17
mediumA 5-minute stereo song at Hz, -bit. How many total samples (across both channels)?
Example 18
mediumCD-quality audio is 44100 Hz, 16-bit, stereo. Compute the bit rate in bits per second.
Example 19
mediumTelephone audio: Hz, -bit, mono. How many bytes for a 10-second call?
Example 20
mediumTo capture frequencies up to Hz, what is the minimum sample rate by Nyquist?