alice-teacher question regarding bits and bytes!

Moran, Deborah - The Academy - Teacher deborah.moran at bgreen.kyschools.us
Wed Mar 5 10:38:30 EST 2014


You have found the correct number of bytes, but there are 8 bits in each byte so the key is correct.


Sent via the Samsung GALAXY S®4 Active™, an AT&T 4G LTE smartphone



-------- Original message --------
From: Sandy Graham <sandyg at gvtc.com>
Date: 03/05/2014 9:35 AM (GMT-06:00)
To: 'Alice educators' <alice-teachers at lists.andrew.cmu.edu>
Subject: Re: alice-teacher question regarding bits and bytes!


The book I just started has this question:
“If a picture was made up of 64 possible colors, how many bits would be needed to store each pixel of the picture?”
I thought RGB values would be required so was trying to figure out an answer from that (though the book doesn’t give much information on how to do that exactly), but the answer key says the answer is 6. I can see that 2^6 = 64 and assume that’s where the 6 came from, but why is that the answer? How does 6 bits yield 64 possible colors? Don’t RGB values have to be considered?

Then the next question asks, “How many bits are there in 12 KB?”
So 12 * 2^10 = 12,288, right? I’m pretty confident of my answer, but I wanted to double check with a reliable source as the answer key says 98, 304 is the correct answer. The key is wrong, right?

Thanks! I didn’t know where else I could get a reliable answer to this!
Your sister in Christ,

Sandy Graham

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20140305/0c763b87/attachment-0001.html 


More information about the alice-teachers mailing list