Change Contents of the Bubble
Welcome to CS1315. Click on the python to add comments.

Looking for the book? They have it at the Engineer's Bookstore at 748 Marietta St NW. Here is there website: http://www.engrbookstore.com/ - Monica

Hotspots: Slides and CodeTA CornerComments?AnnouncementsFAQStatic Webspace
View this PageEdit this PageUploads to this PageHistory of this PageHomeRecent ChangesSearchHelp Guide

Midterm Exam 2 Review Spring 2006: 001110100010110100101001


For (a), how about 32 bits? Or is that just crazy off?
Crazy correct. -poof #10

How about (b) being 256 bits?
Nope. Liz Helms

what about b being 16 bits?

c==24?
d==10?

yes, yes, and yes. Amanda Bennett

B)
2^x = 65,536 (where x tells you the number of bits)
xlog(2) = log(65,536)
x = log (65,536) / log (2)
x = 16 bits

Is this correct?

I think that the wording for part d is a little confusing. If the correct answer is 10, then it should say "A string in some systems can only be up to 1023 characters long". Because when I first read this I thought that there were 1023 different characters and got an answer of 8184 bits.

1) where in the book/slides is this from?
2) why in the __ do we need to learn this in college?

(1) It builds on your understanding of Sections 1.2 and 3.7 of the book. The corresponding slides deal with encoding distinct values as numbers, and the slides on HTML also deal with the related topic of representing bytes in hexadecimal.
(2) Good question. Because computing is all about encoding values, and computers are based on binary encodings. (BTW, how many people can have distinct social security numbers? And are the SSNs of dead people recycled? If not, so there soon won't be enough SSNs to go round. Somebody in Government who had understood this material might not have made that mistake. That is why it helps to know this stuff.) Colin Potts

So to solve these we need to say how ever many numbers raised to the x equals the possiblilties and solve using log functions? this should get the bits? if that is the correct way... is that because there are two possible ways to store something in the computer(0 and 1)?

if i am reading this correctly, then yes to all Liz Helms



Link to this Page