Skip to content

Commit f85711d

Browse files
committed
Corrections for questions
1 parent f4d29e6 commit f85711d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

number-systems/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Convert the decimal number 14 to binary.
88
Answer: 1110
99

1010
Convert the binary number 101101 to decimal:
11-
Answer: 43
11+
Answer: 45
1212

1313
Which is larger: 1000 or 0111?
1414
Answer: 1000
@@ -23,7 +23,7 @@ What is 10001 + 10001?
2323
Answer: 100010
2424

2525
What's the largest number you can store with 4 bits, if you want to be able to represent the number 0?
26-
Answer: 0000
26+
Answer: 15
2727

2828
How many bits would you need in order to store the numbers between 0 and 255 inclusive?
2929
Answer: 8
@@ -35,7 +35,7 @@ How many bits would you need in order to store the numbers between 0 and 1000 in
3535
Answer: 10
3636

3737
How can you test if a binary number is a power of two (e.g. 1, 2, 4, 8, 16, ...)?
38-
Answer:
38+
Answer: A number when converted to binary should have a single "1" in it.
3939

4040
Convert the decimal number 14 to hex.
4141
Answer: E
@@ -56,10 +56,10 @@ If reading the byte 0x21 as an ASCII character, what character would it mean?
5656
Answer: !
5757

5858
If reading the byte 0x21 as a greyscale colour, as described in "Approaches for Representing Colors and Images", what colour would it mean?
59-
Answer: Dark brown
59+
Answer: Dark grey
6060

6161
If reading the bytes 0xAA00FF as an RGB colour, as described in "Approaches for Representing Colors and Images", what colour would it mean?
6262
Answer: Dark purple
6363

6464
If reading the bytes 0xAA00FF as a sequence of three one-byte decimal numbers, what decimal numbers would they be?
65-
Answer: 2575
65+
Answer: 170, 0, 255

0 commit comments

Comments
 (0)