Skip to content

Commit d32f791

Browse files
committed
readme restored
1 parent 2ee678b commit d32f791

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

number-systems/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,41 +5,61 @@ Do not convert any binary numbers to decimal when solving a question unless the
55
The goal of these exercises is for you to gain an intuition for binary numbers. Using tools to solve the problems defeats the point.
66

77
Convert the decimal number 14 to binary.
8+
Answer:
89

910
Convert the binary number 101101 to decimal:
11+
Answer:
1012

1113
Which is larger: 1000 or 0111?
14+
Answer:
1215

1316
Which is larger: 00100 or 01011?
17+
Answer:
1418

1519
What is 10101 + 01010?
20+
Answer:
1621

1722
What is 10001 + 10001?
23+
Answer:
1824

1925
What's the largest number you can store with 4 bits, if you want to be able to represent the number 0?
26+
Answer:
2027

2128
How many bits would you need in order to store the numbers between 0 and 255 inclusive?
29+
Answer:
2230

2331
How many bits would you need in order to store the numbers between 0 and 3 inclusive?
32+
Answer:
2433

2534
How many bits would you need in order to store the numbers between 0 and 1000 inclusive?
35+
Answer:
2636

2737
How can you test if a binary number is a power of two (e.g. 1, 2, 4, 8, 16, ...)?
38+
Answer:
2839

2940
Convert the decimal number 14 to hex.
41+
Answer:
3042

3143
Convert the decimal number 386 to hex.
44+
Answer:
3245

3346
Convert the hex number 386 to decimal.
47+
Answer:
3448

3549
Convert the hex number B to decimal.
50+
Answer:
3651

3752
If reading the byte 0x21 as a number, what decimal number would it mean?
53+
Answer:
3854

3955
If reading the byte 0x21 as an ASCII character, what character would it mean?
56+
Answer:
4057

4158
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:
4260

4361
If reading the bytes 0xAA00FF as an RGB colour, as described in "Approaches for Representing Colors and Images", what colour would it mean?
62+
Answer:
4463

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

0 commit comments

Comments
 (0)