Practice Data Representation in CS Thinking
Use these practice problems to test your method after reviewing the concept explanation and worked examples.
Quick Recap
The way information—numbers, text, images, sound—is encoded as binary digits inside a computer.
Turning real-world things (text, images, sound) into numbers a computer can process.
Example 1
easyA computer stores the character 'A' as the number 65 (ASCII). Explain why computers use numbers to represent characters.
Example 2
mediumExplain how a computer represents a colour image using binary. What are pixels and colour depth?
Example 3
mediumSound is analogue but computers are digital. Describe how analogue sound is converted to digital form, using the terms 'sample rate' and 'bit depth'.
Example 4
hardExplain the difference between lossless and lossy compression. Give an example of each and explain when you would choose one over the other.