# Register now to access 7 million high quality study materials (What's Course Hero?) Course Hero is the premier provider of high quality online educational resources. With millions of study documents, online tutors, digital flashcards and free courseware, Course Hero is helping students learn more efficiently and effectively. Whether you're interested in exploring new subjects or mastering key topics for your next exam, Course Hero has the tools you need to achieve your goals.

3 Pages

### quiz0s

Course: CS 50, Fall 2009
School: Harvard
Rating:

Word Count: 679

#### Document Preview

Science Computer 50: Introduction to Computer Science I Harvard College Fall 2007 Quiz 0 Solutions Answers other than the below may be possible. A Little Bit of Everything. 0. Binary numbers represent values using only 0s and 1s. Whereas decimal numbers have a &quot;1s' place,&quot; a &quot;10s' place,&quot; a &quot;100s' place,&quot; and so forth, binary numbers have a &quot;1s'...

Register Now

#### Unformatted Document Excerpt

Coursehero >> Massachusetts >> Harvard >> CS 50

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
Science Computer 50: Introduction to Computer Science I Harvard College Fall 2007 Quiz 0 Solutions Answers other than the below may be possible. A Little Bit of Everything. 0. Binary numbers represent values using only 0s and 1s. Whereas decimal numbers have a "1s' place," a "10s' place," a "100s' place," and so forth, binary numbers have a "1s' place," a "2s' place," a "4s' place," and so forth. Accordingly, each digit in a binary number represents 0 times some power of two or 1 times some power of two. And, so, 100 in binary does, in fact, represent the number we know as four: 4s 2s 1s 100 1. =14 + 02 + 01 = 4 1 11 00100100 + 00101111 01010011 2. Even though you can represent 4,294,967,296 different values with 32 bits, you can only represent 2,147,483,648 through 2,147,483,647 (assuming a two's-complement system) if half of those values are to be negative (as is the case for an int). Because we also need to represent zero somehow, only 2,147,483,647 patterns of bits remain for positive values. None of David's students ever receives an A, B, or C because all students deserving of such grades are instead awarded Ds. Because students deserving As, Bs, or Cs have averages greater than or equal to 70, line 2 of this program always evaluates to true for such students. And so they are awarded a D, as per line 3. Lines 4 through 9 are not even executed for such students. The computer considers a 60 to be a failing grade because the program awards Ds to all students having averages greater than 60--not equal to 60--as per line 2. 3. 1 of 3 Computer Science 50: Introduction to Computer Science I Harvard College Fall 2007 To redress these issues, the program can be re-written as follows. 1. for each student 2. if student's average 90 3. award student a A 4. else if student's average 5. award student a B 6. else if student's average 7. award student a C 8. else if student's average 9. award student an D 10. else 11. award student an E then 80 then 70 then 60 then This program also correctly recognizes a 90 as an A, an 80 as a B, and a 70 as a C. 4. 5. To compile a program is to translate human-readable code source into machine-readable object code, patterns of 0s and 1s that a computer's CPU interprets as instructions and data. Given an uppercase char between 'A' and 'Z', this function returns its lowercase equivalent; given any other char, the function returns that same char. Because a char is just an ASCII number underneath the hood, with 'A' mapped to 65, and 'B' mapped to 66, on upwards, the effect of subtracting 'A' from c is to map 'A' through 'Z' to 0 through 25, thereby indicating which of 26 letters is to be converted to uppercase. The effect of adding thereafter 'a' (or 97) to that value is to re-map 0 through 25 to 'a' through 'z', which yields our lowercase equivalent. A multi-threaded program can essentially perform multiple tasks at once. More precisely, it gives the illusion of performing multiple tasks at once by splitting its functionality into multiple parts (threads) and relying on the operating system to switch rapidly back and forth among them. Microsoft Word, for instance, is able to check your spelling (underlining misspelled words in red) while you type because it is multi-threaded. Similarly are Scratch projects with multiple sprites effectively multi-threaded. 1151 6. 7. Multiple Choice. 8. 9. 10. 11. 12. 13. 14. 15. a, b, c, or d d d c b d d a, b, c, or d ...

Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

Harvard - CS - 50
Computer Science 50: Introduction to Computer Science I Harvard College Fall 2007Quiz 2out of 50 points Print your name on the line below.Do not turn this page over until told by the staff to do so. This quiz is &quot;closed-book.&quot; However, you may u
Harvard - CS - 50
Computer Science 50: Introduction to Computer Science I Harvard College Fall 2007Quiz 2Solutions Answers other than the below may be possible.Multiple Choice. 0. 1. a, b, c, or d a, b, c, or dTrees and Tries. 2. 3. For small inputs (i.e., unco
Harvard - CS - 50
Computer Science 50: Introduction to Computer Science I Harvard College Fall 2007Quiz 0out of 40 points Print your name on the line below.Do not turn this page over until told by the staff to do so. This quiz is &quot;closed-book.&quot; However, you may u
Harvard - CS - 50
NOTICE TO PODCAST SUBSCRIBERSThe source code for CS 50's library as well as for Fall 2007's problem sets in general can be found at http:/cs50.tv/.Computer Science 50: Introduction to Computer Science I Harvard College Fall 2007Problem Set 4: F
Harvard - CS - 50
NOTICE TO PODCAST SUBSCRIBERSThe source code for CS 50's library as well as for Fall 2007's problem sets in general can be found at http:/cs50.tv/.Computer Science 50: Introduction to Computer Science I Harvard College Fall 2007Problem Set 5: M
Harvard - CS - 50
NOTICE TO PODCAST SUBSCRIBERSThe source code for CS 50s library as well as for Fall 2007s problem sets in general can be found at http:/cs50.tv/.Computer Science 50: Introduction to Computer Science I Harvard College Fall 2007Problem Set 2: Cry
Harvard - CS - 50
Computer Science 50: Introduction to Computer Science I Harvard College Fall 2007Quiz 1out of 77 points Print your name on the line below.Do not turn this page over until told by the staff to do so. This quiz is closed-book. However, you may uti
Harvard - CS - 50
Computer Science 50: Introduction to Computer Science I Harvard College Fall 2007Problem Set 1: Cout of 55 points due by 7:00 P.M. on Friday, 5 October 2007 Be sure that your code is thoroughly commented to such an extent that lines' functionality
Harvard - CS - 50
Computer Science 50: Introduction to Computer Science I Harvard College Fall 2007Quiz 1Solutions Answers other than the below may be possible.Multiple Choice. 0. 1. 2. 3. a, b, c, or d d c bLet's see how good your memory is. 4.heap *y *bswa
Harvard - CS - 50
NOTICE TO PODCAST SUBSCRIBERSThe source code for CS 50's library as well as for Fall 2007's problem sets in general can be found at http:/cs50.tv/.Computer Science 50: Introduction to Computer Science I Harvard College Fall 2007Problem Set 4: F
Harvard - CS - 50
NOTICE TO PODCAST SUBSCRIBERSThe source code for CS 50s library as well as for Fall 2007s problem sets in general can be found at http:/cs50.tv/.Computer Science 50: Introduction to Computer Science I Harvard College Fall 2007Problem Set 2: Cry
Harvard - CS - 50
Computer Science 50: Introduction to Computer Science I Harvard College Fall 2007Problem Set 0: Scratchout of 60 points due by 7:00 P.M. on Friday, 28 September 2007, via submission on nice.fas.harvard.edu per the directions at this documents end
Harvard - CS - 50
NOTICE TO PODCAST SUBSCRIBERSThe source code for CS 50's library as well as for Fall 2007's problem sets in general can be found at http:/cs50.tv/.Computer Science 50: Introduction to Computer Science I Harvard College Fall 2007Problem Set 3: T
Harvard - CS - 50
NOTICE TO PODCAST SUBSCRIBERSThe source code for CS 50's library as well as for Fall 2007's problem sets in general can be found at http:/cs50.tv/.Computer Science 50: Introduction to Computer Science I Harvard College Fall 2007Problem Set 3: T
Harvard - CS - 50
NOTICE TO PODCAST SUBSCRIBERSThe source code for CS 50's library as well as for Fall 2007's problem sets in general can be found at http:/cs50.tv/.Computer Science 50: Introduction to Computer Science I Harvard College Fall 2007Problem Set 6: H
Harvard - CS - 50
NOTICE TO PODCAST SUBSCRIBERSThe source code for CS 50's library as well as for Fall 2007's problem sets in general can be found at http:/cs50.tv/.Computer Science 50: Introduction to Computer Science I Harvard College Fall 2007Problem Set 7: C
Harvard - QR - 48
Solutions QR48 Final Exam May 20, 2006 Short Problems 1. 8 111 00001010 00000111 00010001 = 17 2. lg 33 is a little more than 5, so 6. If I knew the frequency of each of the letters I could create a Huffman code that would decrease the overall code l
Harvard - CS - 264
Bryan Parno CS 263 10/8/03Research Proposal: Analyze &amp; Thwart Adversaries in the LOCKSS SystemThe LOCKSS (Lots Of Copies Keep Stuff Safe) project allows libraries to store and preserve electronic journals and other archival information through a s
Harvard - CS - 264
How to Write a ReviewYou may at some point in your life be asked to review a paper for a conference. A good review is one that follows the desired format asked by the Program Committee of the conference, is polite, and is specic in its criticism and
Harvard - CS - 199
The Electronic Frontier Foundation Defending Freedom in the Digital WorldReport on Data AggregationKelly Heffner, Rachel Popkin, Reem Alsweilem, Anjuli KannanIntroductionThe primary concern of the EFF is the use of data aggregation by the gover
Harvard - CS - 199
Policy Brief: Habeas Data as a Policy Toward Corporate Data Aggregation Brett ThomasSubmitted 5/14/2007 Harvard University CS 199rIntroduction: Background of Data Aggregation Consumer data is an important aspect of business in America.1 Businesse
Harvard - CS - 199
Group Brief #3: Helen Drislane, Diana MacLean, Ian Rose, Charles Baakel, Brian Lee I. Overview As a public figure running for office, you most certainly will fall under close scrutiny and you should be aware that you have many fewer privacy rights th
Harvard - CS - 764
XJoin and the Benefits of Free WorkJustin Forrester{jforrest, ledlie}@cs.wisc.edu Computer Sciences Department University of Wisconsin 1210 West Dayton Street Madison, Wisconsin 53706, U.S.A.Jonathan LedlieAbstractWe report here on our experie
Harvard - P - 2
Hilbert CurvesJonathan LedlieHarvard University jonathan@eecs.harvard.edu1Results1.2Nearest Point Correlation1.1Correlation of All PointsThe first experiment looks at the general correlation between Euclidean distance and Hilbert dist
Harvard - EECS - 09
Jonathan Ledlie: Research Statement1/4My research area is experimental computer systems, broadly dened, with a particular focus on large-scale and mobile distributed systems. Through my work in industry, research labs, and graduate school, I have
Harvard - CS - 736
Web Caching File SystemJonathan Ledlie Matt McCormickOutline Motivation - why design a new file system? Current state of affairs Design of web caching file system Performance comparison - WCFS to Unix Future work ConclusionsTwo points Opt
Harvard - CS - 736
A Fast File System for Caching Web ObjectsMatthew McCormick{mattmcc, ledlie}@cs.wisc.edu Computer Sciences Department University of Wisconsin 1210 West Dayton Street Madison, Wisconsin 53706, U.S.A.Jonathan LedlieAbstractGiven the increasing p
Harvard - P - 2
Under submission: Do not distribute.Open Problems in Data Collection NetworksJonathan Ledlie, Jeff Shneidman, Matt Welsh, Mema Roussopoulos, Margo SeltzerHarvard University{jonathan,jeffsh,mdw,mema,margo}@eecs.harvard.eduAbstractResearch in s
Harvard - QR - 48
Koans of Bits IllustrationsHarvard QR48 and CS E-2 Harry Lewis Spring 200701QuickTimey and a TIFF (LZW) decompressor are needed to see this picture.QuickTimey and a TIFF (LZW) decompressor are needed to see this picture.3.Bits Represen
Harvard - CS - 256
Before we start formalizing proofs about languages, we first need tobetter formalize what we mean by inference rules. (Winskell goes intomuch more detail than I do here.)Inference rules let us define sets in an inductive fashion. Lasttime, we
Harvard - CS - 256
Scaling up: adding computational &quot;effects&quot;At this point, it becomes natural to start introducing more realisticfeatures into the language including (1) recursive functions, (2)recursive types, and (3) references/state. Let's start with recursiv
Harvard - CS - 256
Goals of the course:* Learn how to construct models/specifications of systems * &quot;system&quot; = language * could be something like Java or ML or the JVML * could be the x86 * could be a protocol like TCP * the goal is to have precise, useful s
Harvard - CS - 256
For reference, here is the big-step semantics for IMP. Therelations we define are: &lt;e,s&gt; =&gt; i, meaning expression eevaluates to the integer i under store s, and &lt;c,s&gt; =&gt; s'meaning command c, when run in store s, produces store s'.(In class, I u
Campbell - WORDFILES - 2
Statistical analysis of the X-ray emission properties of type-1 AGN in the XMM-2dF Wide Angle SurveySilvia MateosLeicester University (UK)M.G. Watson, J. A. Tedds and Y. Xu Leicester University (UK) M. Page Mullard Space Science Laboratory-UCL (UK
Campbell - PHAR - 2
PHAR 415: Essentials of Blood Pressure Regulation in HypertensionDr. Thomas Abraham Fall 2002 Learning Objectives: The student should be able to 1. Describe the primary anatomical structures that are involved in the regulation of systemic blood pres
Campbell - PHAR - 415
PHAR 415: Essentials of Blood Pressure Regulation in HypertensionDr. Thomas Abraham Fall 2002 Learning Objectives: The student should be able to 1. Describe the primary anatomical structures that are involved in the regulation of systemic blood pres
Harvard - FNA - 001
Morphology of Mosses (Phylum Bryophyta)Barbara J. Crandall-Stotler Sharon E. Bartholomew-BeganWith over 12,000 species recognized worldwide (M. R. Crosby et al. 1999), the Bryophyta, or mosses, are the most speciose of the three phyla of bryophyt
Harvard - FNA - 27
Morphology of Mosses (Phylum Bryophyta)Barbara J. Crandall-Stotler Sharon E. Bartholomew-BeganWith over 12,000 species recognized worldwide (M. R. Crosby et al. 1999), the Bryophyta, or mosses, are the most speciose of the three phyla of bryophyt
Harvard - FNA - 001
Economic and Ethnic Uses of BryophytesJanice M. GlimeIntroduction A general lack of commercial value, small size, and inconspicuous place in the ecosystem have made the bryophytes appear to be of no use to most people. However, Stone Age people l
Harvard - FNA - 27
Economic and Ethnic Uses of BryophytesJanice M. GlimeIntroduction A general lack of commercial value, small size, and inconspicuous place in the ecosystem have made the bryophytes appear to be of no use to most people. However, Stone Age people l
Harvard - MAP - 001
agave_americana.jpgagave_americana_subsp_americana.jpgagave_americana_subsp_protamericana.jpgagave_americana_var_americana.jpgagave_americana_var_expansa.jpgagave_asperrima_var_asperrima.jpgagave_chrysantha.jpgagave_decipiens.jpgagave_delamat
Harvard - ISMRM - 2007
High flip angle slice selective Parallel RF Excitation on an 8-channel system at 3T1K. Setsompop1, A. C. Zelinski1, V. A. Alagappan2, U. J. Fontius3, F. Hebrank4, F. Schmitt3, L. L. Wald2, and E. Adalsteinsson1 EECS, Massachusetts Institute of Tec
Harvard - ISMRM - 2007
Reduced-Voltage RF Shimming for Adiabatic Pulse Design in Parallel Transmission1K. Setsompop1, L. L. Wald2, and E. Adalsteinsson1 EECS, Massachusetts Institute of Technology, Cambridge, MA, United States, 2A. A. Martinos Center for Biomedical Imag
Harvard - SFN - 2007
Simultaneous Imaging of Cerebral Blood Flow and Partial Pressure of Oxygen During Functional Activation1SavaSakadzi, 1Shuai Yuan, 2,3Ergin Dilekoz, 1Svetlana Ruvinskaya, 1Mark H. Shalinsky, 4Sergei A. Vinogradov, 2,3Cenk Ayata, 1David A. Boas#87
Harvard - HBM - 2006
Dynamic response of the human brain to acupuncture at LV3 as monitored by fMRI: evidence of limbic system modulation#485Yanping Sun1, Jiliang Fang1, Erika Nixon1, Jing Liu1, George Papadimitriou2, Ovidiu Marina3, Gregory Cavanagh1, Vitaly Napadow
Harvard - ISMRM - 2005
Effect of Smoothing on High Resolution fMRI Experiments at Higher Field StrengthsChristina Triantafyllou1, Richard D. Hoge1, Lawrence L. Wald11MGH/MIT/HMSA.A. Martinos Center for Biomedical Imaging, Charlestown, MA, United Stateschristin@nmr.mg
Harvard - SFN - 2006
Do decreases in cortical thickness or volume relate to cognitive performance in healthy aging?David A. Ziegler,1 Olivier Piguet,1 Keyma Prince,1 Emily Connally,1 David H. Salat,2 Bruce Fischl,2 Suzanne Corkinof Brain and Cognitive Sciences, MIT, Ca
Harvard - SFN - 2007
Harvard - SFN - 2006
Comparing the Psychophysical Response to Acupuncture and to Tactile StimulationK.K.S. Hui*1; E. Nixon1 ; M. Vangel1; S.M. Hodge2; J. Liu1; O. Marina3; V. Napadow1; N. Makris2; D. N. Kennedy21 Martinos Ctr for Biomedical Imaging, 2 Ctr for Morphomet
Harvard - ISMRM - 2007
High-Resolution Human Functional MRI: Feasibility and Specificity at High (3T) and Ultra-High (7T) FieldsI. Kahn , C. J. Wiggins , G. Wiggins , K. L. Miller , T. Benner , B. Fischl , L. L. Wald , B. C. Dickerson , R. L. Buckner1 1,2 2 2 3 2 2,4 2 2
Harvard - HBM - 2005
White Matter Changes in AD Measured With Diffusion Tensor ImagingSalat DH1,2, Tuch DS1, Hevelone ND1, Zaleta AK1, Corkin S1,2, Growdon JH3, Rosas HD31MGH/MIT/HMSAthinoula A. Martinos Center for Biomedical Imaging/MGH Dept of Radiology 2MIT Dept o
Harvard - ISMRM - 2006
Water and Fat Suppressed Proton Projection MRI (WASPI) of Rat Femur Bone with Sub-millimeter ResolutionY. Wu1,2,4, J. L. Ackerman1,2,4, G. Dai2,4, D. A. Chesler2,4, M. Hrovat5, B. D. Snyder3,4, A. Nazarian3,4, M. J. Glimcher1,4 Surgery Department, C
Harvard - HBM - 2005
Imaging gray matter myelin content of human auditory cortex: resolving a major architectonic division and hemispheric differences in-vivoIrina S. Sigalovsky, Jennifer R. Melcher and Bruce FischlEaton-Peabody Laboratory, Massachusetts Eye &amp; Ear Infi
Harvard - SFN - 2008
Effect of parasympathetic system stimulation on infarct size in rat focal cerebral ischemiaI. AY*, J. LIU, G. DAI, T. BENNER, H. AY, A.G. SORENSEN.Athinoula A. Martinos Center for Biomedical Imaging, Department of Radiology, Massachusetts General H
Harvard - SFN - 2008
New multispectral MRI methods may improve the diagnosis and tracking of Parkinson's diseaseDavid A. Ziegler1,2 Julien S. Wonderlick1,2 Alex J. Murphy1,2 John H. Growdon3 Suzanne Corkin1,22Athinoula 1Department of Brain &amp; Cognitive Sciences, MIT, Ca
Harvard - HBM - 2005
Effects of acoustic and articulatory perturbation on cortical activity during speech productionJason Tourville1, Frank Guenther1,2,3, Satrajit Ghosh2, Kevin Reilly1, Jason Bohland1, Alfonso Nieto-Castanon11Department of Cognitive and Neural Systems
Harvard - ISMRM - 2005
Proton MR Spectroscopy for in vivo Quantification of small Animal Brain Alcohol KineticsElfar Adalsteinsson , Edith V. Sullivan , Adolf Pfefferbaum1,2 3 1 3 2 4 3,4Harvard-MIT Division of Health Sciences and Technology, Department of Electrical E
Harvard - HBM - 2005
Antisaccade Errors Are Associated with a Failure to Deactivate the Default Mode NetworkFrida E. Polli1,4, Jason J.S. Barton2, Matt S. Cain1, Katherine N. Thakkar1, Scott L. Rauch1, &amp; Dara S. Manoach1,3 1Dept of Psychiatry, Massachusetts General Hosp
Harvard - SFN - 2006
Neural Dynamics of Alcohol Effects on Response ConflictAzma, S., Marinkovi, K.MGH/MIT/HMS Athinoula A. Martinos Center for Biomedical Imaging, Charlestown, MA Harvard Medical School Radiology Dept., Massachusetts General Hospital, Boston, MA367.1
Harvard - ISMRM - 2005
Design Considerations and Coil Comparisons for 7 Tesla Brain ImagingLawrence L. Wald1, Graham C. Wiggins1, Andreas Potthast2, Christopher J. Wiggins1 , Christina Triantafyllou11 MGH/MIT/HMSA. A. Martinos Center for Biomedical Imaging, Charlestown
Harvard - SFN - 2005
DTI-based Measures of White Matter Integrity Predict Cognitive Performance in Healthy AgingDavid A. Ziegler 1, David H. Salat 2, Scott M. Hayes 3, Keyma Prince 1, Emily Connally 1, Olivier Piguet 1, Suzanne Corkin 1,21Departmentof Brain and Cogni