1.2.4 - Data storage Flashcards
(34 cards)
What base system is denary?
Base 10
Ranges from 0-255
Uses 0,1,2,3,4,5,6,7,8,9
What base system is hexadecimal?
Base 16
Ranges from 00-FF
Uses 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F
What base system is binary?
Base 2
Ranges from 00000000–11111111
Uses 1,0
Why do computers use binary?
Binary is used to represent data because computers use transistors which store ‘on’ and ‘off’ using ‘1’ and ‘0’
How do you convert from denary to binary? (+vice versa)
Use binary headings:
128,64,32,16,8,4,2,1
(from right to left in ascending order)
Create columns and fill to make the number (+vice versa)
How do you add binary together?
Start from the rightmost column and make your way left.
eg. 1001 + 0100 = 1101
What is an overflow error?
Occurs when the binary addition succeeds the number of bits available to store the answer.
How do you convert denary to hexadecimal? (+ vice versa)
eg. 28 to hexadecimal
First convert the denary number to binary.
Which is 00011100
Then split into 2, 0001 and 1100
These two parts equal 1 and C respectively. (C=12)
Therefore 1C (hex) = 28 (denary)
Why might we store data with hexadecimal?
Useful because larger numbers can be represented with fewer digits.
(also easier to understand than binary)
What is a binary shift?
A way for computers to perform basic multiplication and division.
What does a left shift do?
Multiplies a number by 2 (x2)
eg. left shift of 2 would be a multiplication of 4.
What does a right shift do?
Divides a number by 2 (÷2)
eg. a right shift of 2 would divide a number by 4.
What is a character set?
A character set is a collection of all the characters that a computer recognises along with their binary codes.
Text is made up of characters.
Each character is assigned its own character code.
What are the two main character sets used?
ASCII
Unicode
How many bits does ASCII use? And how many characters can that represent?
7 bits.
128 characters. (2^7)
How many bits does Extended ASCII use? And how many characters can that represent?
8 bits.
256 characters. (2^8)
How many bits does Unicode use? And how many characters can that represent?
Minimum of 16 bits.
Minimum of 65,536 characters.
What are the limitations of (extended) ASCII?
Limited number of characters, therefore can only represent the English alphabet and some special characters.
Therefore does not include modern symbols.
What is resolution?
The number of pixels an image is made up of.
Calculated by width x height of the image in pixels.
What does higher resolution mean?
Better quality of image. It is clearer because more pixels are used to display the image.
What is colour depth? (aka bit depth)
Number of bits stored per pixel.
How many colours can you represent with a bit/colour depth of x? (eg. 4)
2^x
eg. 2^4 = 16
What does higher colour/bit depth mean?
Better quality of image, because more colours can be represented, therefore more alike the original image.
How does resolution affect file size?
As the resolution of an image increases, so does the file size,
because the higher the resolution, the more pixels stored in the image,
and the higher the colour depth, the more bits per pixel.