Skip to content

London | 2026-SDC-Nov | Vitalii Kmit | Sprint 1 | Number systems exercises - #699

Open
Vitalii-code wants to merge 3 commits into
CodeYourFuture:mainfrom
Vitalii-code:number-systems
Open

Vitalii-code wants to merge 3 commits into
CodeYourFuture:mainfrom
Vitalii-code:number-systems

Conversation

@Vitalii-code

Copy link
Copy Markdown

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Task code

CYF-1146

Changelist

Worked on the number exercises

@Vitalii-code Vitalii-code added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Nov 19, 2026
@github-actions

Copy link
Copy Markdown

Results of test:
You passed 15/15 tasks in part 1.
Please let a volunteer check the answers for part 2.
If you want to re-run the automated tests after changing some code, remove the 'Needs Review' label, wait a little, and then re-add the 'Needs Review' label on your PR.

Vitalii-code and others added 2 commits November 20, 2026 17:37
Clarified answers for binary power of two and ASCII character.

@ParthibanRajasekaran ParthibanRajasekaran left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 :)

Comment thread number-systems/Part-1.md
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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Comment thread number-systems/Part-2.md
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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

@ParthibanRajasekaran ParthibanRajasekaran added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Reviewed Volunteer to add when completing a review with trainee action still to take.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants