Skip to content

Commit edb1105

Browse files
committed
Updating and addressing the issues.
1 parent 39135bf commit edb1105

File tree

1 file changed

+8
-23
lines changed

1 file changed

+8
-23
lines changed

number-systems/README.md

Lines changed: 8 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,36 +11,21 @@ Convert the binary number 101101 to decimal:
1111
Answer:
1212
45
1313
Which is larger: 1000 or 0111?
14-
Answer:
15-
1000 = 8
16-
0111 = 7
17-
1000 is larger
14+
Answer: 1000
1815
Which is larger: 00100 or 01011?
19-
Answer:
20-
00100 = 4
21-
01011 = 11
22-
01011 is larger
16+
Answer:01011
2317
What is 10101 + 01010?
24-
Answer:
25-
10101 = 21
26-
01010 = 10
27-
21+10 = 31
18+
Answer:01011
2819
What is 10001 + 10001?
29-
Answer:
30-
10001 = 17
31-
17+ 17 = 34
20+
Answer:11111
3221
What's the largest number you can store with 4 bits, if you want to be able to represent the number 0?
33-
Answer:
34-
1111 = 15
22+
Answer: 15
3523
How many bits would you need in order to store the numbers between 0 and 255 inclusive?
36-
Answer:
37-
11111111 = 8 bits
24+
Answer: 8 bits
3825
How many bits would you need in order to store the numbers between 0 and 3 inclusive?
39-
Answer:
40-
11 = 2 bits
26+
Answer: 2 bits
4127
How many bits would you need in order to store the numbers between 0 and 1000 inclusive?
42-
Answer:
43-
1111101000 = 10 bits = 1024
28+
Answer: 10 bits
4429
How can you test if a binary number is a power of two (e.g. 1, 2, 4, 8, 16, ...)?
4530
Answer:
4631
if the bit have only '1' in it, means i'ts a power of two, if have multiple '1' that's not.

0 commit comments

Comments
 (0)