Topic 3: Units and Data Representation Flashcards
Why must data be stored in binary form
Data must be stored in binary from because in a computer the processor can only recognize 1s and 0s
How do you calculate file sizes of sound
sound file size= sample rate x duration x bit depth
How do you calculate the file size of an image
image file size = colour depth x image height x image width
How do you calculate the file size of a text file
text file size = bits per character x number of characters
Where do you find the “most significant bit”
The most significant bit is found on the furthest left as it holds the most value
Where do you find the “least significant bit”
The least significant bit is found on the furthest right as it holds the least value
What happens when you complete a binary shift to the left once
The number doubles
What happens when you complete a binary shift to the left twice
The number doubles twice- quadruples
What happens when you complete a binary shift to the right once
The number halves
What happens when you complete a binary shift to the right twice
The number divides by two twice causing it to divide by four
Carry out a binary shift to the left on 01110101
11101010
Carry out a binary shift to the right on 01110101
00111010
What is a limitation of ASCII
It only has 7-bit so can only represent 128 characters so can only represent one language
What is a limitation of Extended ASCII
This is an additional bit meaning it can represent 256 characters meaning they ca include special characters in different languages however doesn’t account for all global languages
Why is unicode better than ASCII and Extended ASCII
Unicode represents over 65000 characters as it has 16-bit. As a result it will account for all global language and symbols