Repository navigation
London | 2026-SDC-Nov | Vitalii Kmit | Sprint 1 | Number systems exercises - #699
Vitalii-code wants to merge 3 commits into
Conversation
|
Results of test: |
Clarified answers for binary power of two and ASCII character.
ParthibanRajasekaran
left a comment
There was a problem hiding this comment.
Great work on the number systems exercises. Most of the answers are correct, and showing your working in Part 1 really helps.
I've left a couple of reviews to help you explain your thinking a bit more :)
| Q8: How many bits would you need in order to store the numbers between 0 and 255 inclusive? | ||
| Answer: | ||
|
|
||
| you need to find a number that produces less than 255 in this formula 2^n+1 |
There was a problem hiding this comment.
Your answer of 8 bits is right.
The formula 2^n+1 doesn't quite match your reasoning, though. How many different numbers are there from 0 to 255 inclusive? What's the smallest power of 2 that gives you that many?
| Q18: If reading the byte 0x21 as a greyscale colour, as described in "Approaches for Representing Colors and Images", what colour would it mean? | ||
| Answer: | ||
|
|
||
| Answer: Should be somewhere between completely black and dark grey as the value is 33 |
There was a problem hiding this comment.
You're on the right track. Could you be more specific? The Part 2 intro asks for an explanation, so what does the greyscale section say about how values map to shades? Where does 33 sit on that scale?
Learners, PR Template
Self checklist
Task code
CYF-1146
Changelist
Worked on the number exercises