Binary and Hexadecimal
Binary and Hexadecimal
Hexadecimal
Veanisha Baskaran
GCSE
Friday 06th September 2024
Binary
• ON=1 OFF=0
• Computers only understand switches
• Screens are made of LED pixels
• More pixels = Higher resolution
• Software –app(lications)s, program, executables
• File extensions - .jpg , .exe , .docx
• Computers can only understand binary or machine code
Machine code is used by computers to understand our programming language, which is consisted of
only numbers. This is almost impossible for humans to understand this.
128 64 32 16 8 4 2 1
1.128 + 64 + 16=208 1 1 0 1 0 0 0 0
2. 64+ 16 + 1= 81 0 1 0 0 1 0 0 1
3.128 +1 = 129
4.251 1 0 0 0 0 0 0 1
5.255 1 1 1 1 1 0 1 1
1 1 1 1 1 1 1 1
128 64 32 16 8 4 2 1
-each column is a bit 1 0 1 1 0 0 0 0
- 8 bits make up 1 byte.
-nibbles = 4 bits 1 0 1 0 1 0 1 0
-each bit goes from 1 to 8 1 1 1 1 0 0 0 0
1 1 0 0 1 1 0 0
0 0 0 0 0 1 1 1
De 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
He 0 1 2 3 4 5 6 7 8 9 A B C D E F
• The original ASCII only uses 7-bit numbers to represent letters , numbers and
punctuation used in the English language.
Do Now
2.5 - 25
• However by shifting to the right is the
In binary, shifting any place to the left is the same as same as dividing by 2
multiplying by 2:
27 26 25 24 23 22 21 20
128 64 32 16 8 4 2 1
0 0 0 0 0 1 0 1 =5
27 26 25 24 23 22 21 20
128 64 32 16 8 4 2 1
0 0 0 0 1 0 1 0 =10