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 trial

Digital Literacy Computer Basics Computer Basics Binary

2 Answers

Tom Finet
Tom Finet
7,027 Points

Hi there,

Since there is only one 1 in the byte, we only have to count its position from the right, which is 4. This means that the answer is 2^3 = 8. Since all the other bits have a value of 0 we can ignore them and find the value of the bit with the value of 1. In this case the answer is 8.

William Li
William Li
Courses Plus Student 26,868 Points

Sarah Finet , it's done, you answer is worthy of the best answer. :)

Tom Finet
Tom Finet
7,027 Points

consider up voting and making my answer best answer so that it can help others too.

Happy coding!

Tom Finet
Tom Finet
7,027 Points

Thanks for the support appreciated!