File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,48 +7,48 @@ The goal of these exercises is for you to gain an intuition for binary numbers.
77The answers to these questions should be a number, either in binary, hex, or decimal.
88
99Q1: Convert the decimal number 14 to binary.
10- Answer:
10+ Answer: 1110
1111
1212Q2: Convert the binary number 101101 to decimal:
13- Answer:
13+ Answer:45
1414
1515Q3: Which is larger: 1000 or 0111?
16- Answer:
16+ Answer: 1000
1717
1818Q4: Which is larger: 00100 or 01011?
19- Answer:
19+ Answer:01011
2020
2121Q5: What is 10101 + 01010?
22- Answer:
22+ Answer:11111
2323
2424Q6: What is 10001 + 10001?
25- Answer:
25+ Answer:100010
2626
2727Q7: What's the largest number you can store with 4 bits, if you want to be able to represent the number 0?
28- Answer:
28+ Answer:15
2929
3030Q8: How many bits would you need in order to store the numbers between 0 and 255 inclusive?
31- Answer:
31+ Answer:8
3232
3333Q9: How many bits would you need in order to store the numbers between 0 and 3 inclusive?
34- Answer:
34+ Answer:2
3535
3636Q10: How many bits would you need in order to store the numbers between 0 and 1000 inclusive?
37- Answer:
37+ Answer:10
3838
3939Q11: Convert the decimal number 14 to hex.
40- Answer:
41-
40+ Answer: E
41+
4242Q12: Convert the decimal number 386 to hex.
43- Answer:
43+ Answer:182
4444
4545Q13: Convert the hex number 386 to decimal.
46- Answer:
46+ Answer:902
4747
4848Q14: Convert the hex number B to decimal.
49- Answer:
49+ Answer:11
5050
5151Q15: If reading the byte 0x21 as a number, what decimal number would it mean?
52- Answer:
52+ Answer:33
5353
5454Q16: Continues in Part-2
You can’t perform that action at this time.
0 commit comments