alice-teacher question regarding bits and bytes!

Don Slater dslater at andrew.cmu.edu
Thu Mar 13 09:54:04 EDT 2014


Sandy,
I thought  this question had already been answered by the community… Or am I missing something?

Don Slater

On Mar 12, 2014, at 9:10 PM, Sandy Graham <sandyg at gvtc.com> wrote:

> I have two students who have completed the entire Alice book. They did every definition, question and programming assignment in the book! We have moved onto a java book to prep them for the AP exam. Chapter 1 of that book has the following 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 con fident 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
>  
> _______________________________________________
> alice-teachers mailing list
> alice-teachers at lists.andrew.cmu.edu
> https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20140313/71ed6713/attachment.html 


More information about the alice-teachers mailing list