1.2.4 Data Storage Flashcards
How to convert binary to decimal?
Convert 1001101 to decimal
64 32 16 8 4 2 1
1 0 0 1 1 0 1
64+8+4+1=75
How to convert decimal to binary?
Convert 37 binary
32 16 8 4 2 1
1 0 0 1 0 1
100101
How to convert Binary to Hexadecimal?
Convert 10101110 to hexadecimal
8421 8421
1010 1110
10 14
A E
AE
How to convert Hexadecimal to Binary?
Convert 7F to binary
8421 8421
0111 1111
01111111
How to convert Decimal to Hexadecimal?
Convert 237 to hexadecimal?
128 64 32 16 8 4 2 1
1 1 1 0 1 1 0 1
8421 8421
1110 1101
E D
ED
How to convert Decimal to Hexadecimal?
Convert 1024 to hexadecimal
1024 512 256 128 64 32 16 8 4 2 1
0 1 0 0 0 0 0 0 0 0 0 0
8421 8421 8421
0100 0000 0000
400
How to convert Hexadecimal to Decimal?
Convert DE to decimal
8421 8421
1101 1110
128 64 32 16 8 4 2 1
1 1 0 1 1 1 1 0
222
Convert 4B to binary then to decimal
8421 8421
0100 1011
128 64 32 16 8 4 2 1
0 1 0 0 1 0 1 1
75
What are Binary Addition rules?
0+0=0
1+0=1
1+1=0 carry 1
1+1+1=1 carry 1
1110
+0111
———-
(1) 0101
/overflow
What is Binary Shift?
Shows multiplication and division of binary numbers
0001
Shift 1 to the left x2
0001 = 5
0010 = 10
00011
Shift left twice x4
00011 = 3
01100 = 12
000011
Shift left 3 times x8
000011 = 3
011000 = 24
00110101
Shift left 4 times x16
00110101
1/1 01010000
00010100
Shift right once /2
00010100 = 20
000001010 no 0 = 10
00010100
Shift right twice /4
00010100 = 20
00000101 = 5