alice-teacher question regarding bits and bytes!

David Binnion dbinnion at hcs-k12.org
Wed Mar 5 11:01:03 EST 2014


1024 bytes in a kilobyte and 8 bits in a byte = 1024 * 12 = 8192 bits in a kilobyte

12KB = 12 * 8192 = 98,304 bits in 12KB

As to the color question. If you think in terms of 1 color assigned to each number - i.e. 1=red, 2=blue, 3= light orange etc,   for 64 colors you’d need 6 bits. You were thinking in terms of the hardware where color is encoded in one of various forms including RGB


On Mar 5, 2014, at 1:30 AM, Sandy Graham <sandyg at gvtc.com> wrote:

> 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
> 

+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Education is not the filling of a bucket, but the lighting of a fire.
-- W. B. Yeats

The objective of education is to prepare the young to educate themselves throughout their lives.
-- Robert Maynard Hutchins

=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
David W Binnion             dbinnion at hcs-k12.org
Technology/Vocational Education Department Head
Hillsboro High School
550 US 62 South
Hillsboro, OH 45133
(937) 393-3485 ext 2905

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


More information about the alice-teachers mailing list