Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialcollins ero
Courses Plus Student 362 PointsWhat number is represented by the byte 00001000? i did a rough work and i arrived at 16
What number is represented by the byte 00001000? i did a rough work and i arrived at 16. but was told i got it it wrong even though i got the other quizzes 1-3 using same methods i saw in the instruction. so what is the right answer and what am i doing wrong? Thanks
3 Answers
Max Loyd
903 PointsIt is 8
Jennifer Nordell
Treehouse TeacherMax Loyd is correct. To be honest, I think you just miscounted. The "1" is the 4th number over. Now remember, the spot furthest to the right is 2 to the 0 power (or 1). The number in the second place is 2 to the first power. I think you saw the number in the fourth space and thought 2 to the 4th power (which would have been 16). But because we begin with 2 to the 0 power, the number in the fourth space will be 2 to the third power.
Had the 1 been one more to the left, it would have been in the 5th spot or 2 to the fourth power and your answer would have been correct
Hope this clarifies things!
collins ero
Courses Plus Student 362 Pointsthanks guys twas helpful :)