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

Raphael Reiter
Raphael Reiter
6,820 Points

0000111. I answered 9 because I thought it was 6+2+1. can you explain my mistake please?

  1. I answered 9 because I thought it was 6+2+1. can you explain my mistake please? i dont understand.

I had the understanding that the 1st row from the right equaled 1, the 2, then 6, and then 8. Am i wrong?

Also Is there a place where we can get answers that we answered incorrectly in the quizzes? that would be great.

thanks for your help. best, raphael

9 Answers

Hi Raphael,

You made a mistake with the 3th, because it's not 6 but 4.

00000000 = 0 00000001 = 1 00000010 = 2 00000011 = 3 00000100 = 4 00000101 = 5

So the answer should be 1+2+4=7.

About your second question: I don't know, sorry.

00000000 = 0*0 = 0 00000001 = 2*0 = 1 00000010 = 2*1 = 2 00000011 = 2 + 1 =3 00000100 = 1 + 1 + 2 = 4 00000101 = 1 + 4 = 5

so hence 0000111 would be like 1 + 2 + 4 = 7

Raphael Reiter
Raphael Reiter
6,820 Points

Thanks Franck :) i understand now

Chris Ward
Chris Ward
12,129 Points

Copy and paste the following into a word processor and set the font to Courier New then print it for your reference...

It goes from 2^7 (128) down to 2^0 (1):

0 0 0 0 0 0 0 0

1
2 6 3 1
8 4 2 6 8 4 2 1

You can retake the quizzes at any time to review your progress. The same questions appear each time so you can always use trial and error to get to the correct answer.

128.64.32.16.8.4.2.1 this the binary code 00000000 ==> 0 00000001 ==> 1 00000010 ==> 2 00000100 ==> 4 00001000 ==> 8 00010000 ==> 16 00100000 ==> 32 01000000 ==> 64 10000000 ==> 128