Skip to content

Commit cbec7eb

Browse files
committed
Answering all questions
1 parent 98a9f1f commit cbec7eb

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

number-systems/README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,21 @@ How many bits would you need in order to store the numbers between 0 and 255 inc
3636
Answer:
3737
8 bits
3838

39-
How many bits would you need in order to store the numbers between 0 and 1000 inclusive?
39+
How many bits would you need in order to store the numbers between 0 and 3 inclusive?
4040
Answer:
4141
2 bits
4242

43+
How many bits would you need in order to store the numbers between 0 and 1000 inclusive?
44+
Answer:
45+
10 bits
46+
4347
How can you test if a binary number is a power of two (e.g. 1, 2, 4, 8, 16, ...)?
4448
Answer:
4549
Every binary number is made from sums of powers of 2, but a number is a power of 2 itself if its binary representation has exactly one "1" and all the other bits are 0.
4650

4751
Convert the decimal number 14 to hex.
48-
Answer: 0xE
52+
Answer:
53+
0xE
4954

5055
Convert the decimal number 386 to hex.
5156
Answer:

0 commit comments

Comments
 (0)