Datarepresentation 3
Datarepresentation 3
Science O.L.
(New Syllabus)
01
Data
Representation pt.3
Quick Recap
8
Bit
\ x 8
Byte
1024 \ x 1024
Kibibyte
1024 \ x 1024
Mibibyte
1024 \ x 1024
Gibibyte
1024 \ x 1024
1024
Tibibyte
\ x1024
Pibibyte
Quick Recap
A computer is a device that receives input, does
processing on that input and then produces the output.
Data
Text Images Numbers Videos Sound
Data Representation
Data
Text Images Numbers Videos Sound
Unicode
A character set which can represent all the languages of
the world.
Each character is represented using up to 32 bits (4 bytes)
ASCII vs Unicode
Main advantage of using Unicode character set compared to ASCII character set :
Unicode allows for a greater range of characters and symbols than
ASCII (including different languages and emojis)
Main disadvantage of using Unicode character set compared to ASCII character set:
Text stored using Unicode takes up more storage space as Unicode requires more bits per character
than ASCII
Image
An image is a series of pixels, each representing one colour, that are converted to binary and
processed by the computer..
An image is 50 x 100 pixels and uses a colour depth of 16 bits. Find the size of an image taken by this camera in
KiB.
Sound
An audio file is converted to binary using sampling process to be processed by the computer
An audio file has a length of 80 seconds and sampling rate of 32 samples/sec. Each sample is represented in 32
bits. Calculate the size of the file in Kibibyte
Quick question
An image is to be stored electronically. The image is 256 pixels high by 200 pixels wide with a 16-bit
color depth. Calculate the file size of the image in KiB. You must show all of your working.
Quick question
A soundtrack has duration of 2 minutes and it’s sampled 1024 times per second. Each sample is 16
bits. Calculate the size of the soundtrack in KiB. Show all your working.