-
-
Notifications
You must be signed in to change notification settings - Fork 27
London | 25-SDC-July | Mikiyas Gebremichael | Sprint 1 | Number System #67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! Please review the comments I have added :)
|
||
How can you test if a binary number is a power of two (e.g. 1, 2, 4, 8, 16, ...)? | ||
Answer: | ||
Answer: if the digit at the last index is 1 and all others are 0 it is power of two (except 1 which is 01) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you clarify what you mean by the "last index"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @chinar-amrutkar Thankyou for your feedbacks, i tried to include the explanation next to my answer by saying Clarification as Requested by Volunteer. Sorry there was a huge gap on my use of english and hopefully i explained it now.
|
||
If reading the bytes 0xAA00FF as an RGB colour, as described in "Approaches for Representing Colors and Images", what colour would it mean? | ||
Answer: | ||
Answer: AA =170, 00 = 0, FF = 255 It is RGB(170,000,255) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What would the colour look like? Example answers - orange, black, etc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thankyou, i have figured it out a color with 170 red and full blue is magneta purple.
Hi @chinar-amrutkar I have answered my exercises and pushed my commits now. |
@LonMcGregor could you review this PR please? I have done the final adjustments as commented Thanks |
Great - those clarifications look good. Apologies for the delay in reviewing. You can close this PR now. |
Learners, PR Template
Self checklist
Changelist
Briefly explain your PR.
Questions
Ask any questions you have for your reviewer.