Data representation Flashcards
1
Q
What is binary?
A
Binary is a base 2 number system used in computers
2
Q
What is hexadecimal?
A
base 16 number system that uses numbers 0-9 and then letters A-F to represent the rest of the numbers until 15.
A way of representing binary in a shorter form, hexadecimal does not save memory.
3
Q
binary arithmetic
A
1+0= 1 1+1= 1-0 1+1+1= 1-1
4
Q
Character representation- ASCII
A
- ASCII (American Standard Code for Information Interchange).
- Uses 7 bits, but needs to store in in one full byte (8bits)
- Used by America and UK
5
Q
Character representation- A
A
6
Q
Binary shift- left
A
00000110 (6) LEFT SHIFT BY 2
Becomes
00011000 (24) 6 x2^2
7
Q
Binary shift- right
A
00001000 (8) RIGHT SHIFT BY 2
Becomes
00000010 (2) - 8/2^2