2 - Memory and Storage Flashcards
(45 cards)
What is Binary and why is it important?
Combination of 1s and 0s
Information to be processed by computers must be converted to Binary format.
Numbers, text, sound images and program instructions are stored here.
What is 1 bit?
0/1
What is 1 byte?
8 bits.
stores characters of text
What is a nibble?
4 bits
What is 1 kilobyte
1000 bytes
What is 1 megabyte?
1000 kilobytes
What is 1 gigabyte?
1000 megabytes
What is 1 terabyte?
1000 gigabytes
What is a petabyte?
1000 terabytes
What is denary?
Base 10 number system with 10 digits from 0-9 (one we normally use)
How to convert from denary to binary?
Write out binary code from 1- 128 (from right to left). Fill in numbers that can add to make your number.
e.g. write 128 64 32 16 8 4 2 1
to get the number 45
00101101
What is the largest number that can be stored in 8 bits?
2^8 - 1= 255
What is the largest number that can be stored in 16 bits?
2^16 - 1= 65535
How can we tell a binary number is even or odd.
Even - 0 at the end
Odd - 1 at the end
What is hexadecimal?
Base 16 number system from 0-15
0123456789ABCDEF
How do we convert hexadecimal to Denary
- the left number by 16 and + the right e.g.
2A –> 2 * 16= 32 + 10( which A has value of) = 42
How do we convert denary to hexadecimal?
/ by 16
Use remainder as units
e.g. 18 –> 18/16 = 1 remainder 2
12 in hex
How do you convert binary to hexadecimal
Split binary number into 2 fours.
e.g. 11100101 —> 1110 and 0101
Convert each side to denary using scale from 1-8 (right to left) and cover that to hex
8421
1110 –> 14 = E
0101 –> 5 = 5
E5
How do you convert from Hex to Binary?
Split into 2
e.g. 3B –> 3/B
Convert each side to binary using scale 1-8 (right to left)
3 = 0011 B = 1011
00111011
What are the advantages of hexadecimal?
Easier to remember than binary
Quciker to write as only takes one digit not 4 bits.
Less errors with fewer digits
Easier to convert between hex and binary
What are the rules of binary addition?
0+0=0
1+0=1
0+1=1
1+1=0 carry 1
1+1+1=1 carry 1
What is overflow error?
9th bit in the addition.
What is a binary shift?
Move all bits a place either left or right and fill in gaps with 0.
Multiplies when moving left e.g. double, quadruples e.t.c
Divides when moving right e.g. halves, quartrs e.t.c
Note when bits are removed a loss of accuracy occyrs.
Explain characters on a keyboard
Each character has a binary value. Uppercase is different to lowercase. Punctuation have their own code.
There are 98 unique characters on a keyboard.