U2T1 - Data Representation Flashcards
What is our number system? (2 names)
Denary number system (base 10)
What number system do computers use?
What is it also known as?
Binary
The base 2 number system
From right to left, how do the columns to show binary go?
1, 2, 4, 8, 16, 32, 64, 128.
What is the highest number you can make in binary with 8 digits?
255
Convert denary to binary…
42
146
00101010
10010010
Convert binary to denary…
01101011
11100110
107
230
What are 2 ways to show negative numbers in binary?
Ones complement + twos complement
Describe ones complement…
Convert 1’s to 0’s and 0’s to 1’s.
Find ones complement of…
01100011 (99)
10011100 (-99)
Describe twos complement…
Convert to binary, invert 1’s and 0’s, add one.
Using twos complement:
Convert -5 to binary.
0101
1010
1011 (-5)
Convert 1111 to decimal using twos complement.
1111
0000
0001
= -1
How might you find the highest number a set of bits could create?
2n - 1
What is the bit position on the right hand side called?
What about the left?
Least significant bit (LSB)
Most significant bit (MSB)
How might a bit be represented in a computer’s main memory?
Transistor switched on/off, capacitor charged/discharged etc.