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

This page removed for FERPA compliance
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 jREMOVEDt crazy off?
Crazy correct. -Student2042

REMOVEDw about (b) being 256 bits?
Nope. Student3381

what about b being 16 bits?

c==24?
d==10?

yes, yes, and yes. Student1919

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 confREMOVEDing. If the correct answer is 10, then it should say "A string in some systems can only be up to 1023 characters long". BecaREMOVEDe 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. BecaREMOVEDe 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 REMOVEDing log functions? this should get the bits? if that is the correct way... is that becaREMOVEDe there are two possible ways to store something in the computer(0 and 1)?

if i am reading this correctly, then yes to all Student3381



Link to this Page