Data Representation Flashcards
What are the three types of files?
Text
Sound
Image
How do you calculate text file size?
Bits per character x number of characters
How do you calculate the size of sound files?
Sample rate x duration(s) x bit depth
How do you calculate the file size for image files?
Colour depth x image height(px) x image width
What is an overflow error?
An overflow show that the result of the calculation is too big for it to be stored in 8 bits
What are the rules of binary addition?
0 + 0 = 0
0 + 1 = 1
1 + 1 = 0 carry 1
1 + 1 + 1 = 1 carry 1
What does the result of one left shift leave?
The original number is multiplied by 2
What does one right shift produce?
The original number is divided by 2
What is a character set?
A defined list of characters recognised by the computers hardware and software. Each character is represented by a single number.
What are examples of character sets?
ASCII - American standard code for information interchange- 128 character
Extended ASCII- 256 characters
Unicode- 16 million character
What is metadata?
Metadata is additional data stored with the images to define the width, height, colour depth and colour palette
What are the two types of compression?
Lossy
Lossless
What are some effects of lossy compression?
Some of the data is lost and can’t be recovered
Greatly reduces the file size
Reduces the quality of the image/ sound
Suitable for images, sound and video
Cannot be used on text and executable files
What are some effects of lossless compression?
None of the data is lost, it is just encoded differently
Can be turned back into original format
Can be used on all types of data
Usually less effective than lossy compression at reducing the files size
Most suitable for documents and executable files
Need for primary storage
Main memory is required to temporarily store the programs, instructions and data the computer needs whilst in operation.