Trace Through Calculations
Work through file size calculations step by step
How to Use This Activity
Complete each calculation step by step. Enter your answer, then check if you're correct before moving on. This helps you understand the process, not just get final answers.
Exercise 1: Text File Size (ASCII)
Calculate the file size of a text file containing "Computer Science is fun!" (24 characters) using ASCII encoding.
Exercise 2: Unicode File Size Comparison
A document contains 1,000 characters. Calculate the file size in both ASCII (8-bit) and Unicode (16-bit).
Part A: ASCII
Part B: Unicode
Part C: Comparison
Exercise 3: ASCII Character Codes
Using the pattern that 'A' = 65, 'a' = 97, and '0' = 48, calculate the codes for other characters.
Exercise 4: Image File Size
Calculate the file size of a 640 × 480 pixel image with 24-bit colour depth.
Exercise 5: Colour Depth Comparison
An image has 500,000 pixels. Compare file sizes at different colour depths.
Exercise 6: Sound File Size (Mono)
Calculate the file size of a 20-second mono recording at 22,050 Hz sample rate with 8-bit depth.
Exercise 7: CD Quality Stereo Sound
Calculate the file size of a 1-minute stereo track at CD quality (44,100 Hz, 16-bit).
Exercise 8: Sample Rate Impact
Compare file sizes for a 30-second mono recording at different sample rates (all 16-bit).