London|26-JUI-SDC|Ping Wang|Sprint 1 | number-system#554
Open
pathywang wants to merge 4 commits into
Open
Conversation
OracPrime
suggested changes
Jul 10, 2026
OracPrime
left a comment
There was a problem hiding this comment.
Have another look at Q5, otherwise good
|
|
||
| Q5: What is 10101 + 01010? | ||
| Answer: | ||
| Answer: 100000 |
There was a problem hiding this comment.
Do you want to check this one?
10101
+01010
| Q16: How can you test if a binary number is a power of two (e.g. 1, 2, 4, 8, 16, ...)? | ||
| Answer: | ||
| Answer: A binary number is a power of two if it has exactly one 1 bit and all other bits are 0. For example: 100 000 only has only 1 bit so power of two, 2⁵. | ||
| However 100 100 has two one bits so not power of two instead 2⁵+ 2² |
There was a problem hiding this comment.
Nice use of superscript characters!
However to make hexadecimal/binary conversions easier, group binary numbers in groups of four - so 10 0000 (hex 20) rather than 100 000 (harder to convert to hex)
There was a problem hiding this comment.
Your answer is correct, btw, just a hint on formatting: no need to resubmit
|
Results of test: |
Author
|
Thank you for review , i have done correction for Q5 .Hopefully you are OK with it. |
|
That's great |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Self checklist
Changelist
it is fairly easy task for me after i have read the book"how computer really work"