Logo
  • Home
  • Classes
  • Conveying Computing
  • Exams
  • Fractal Gallery
  • Guides
  • Problem Sets
  • Syllabus

Bug in Exam Question

Posted by David Evans on 28 Nov 2011 in Exams | 3 comments

There is a bad mistake in the Question 6 of the exam!

The example shown in incorrect. The result should be:

> (define p (mlist 1 2 3 4 5))
> (make-cumulative! p)
> p
{1 3 6 10 15}

The value of each element in the result should be the sum of all elements in the original list up to and including that element. So, the first element in the output list is 1 = 1, the second is 1 + 2 = 3, the third is 1 + 2 + 3 = 6, the fourth is 1 + 2 + 3 + 4 = 10, and the fifth is 1 + 2 + 3 + 4 + 5 = 15.

Sorry for the confusion on this. You will receive full credit for this question if your answer either solves the problem as corrected here, or produces the same outputs as the example shown in the original exam.

Special thanks to Caroline Mattey for reporting the problem.

Class 38: The Internet

Posted by David Evans on 28 Nov 2011 in Classes | Comments Off

Class 38: Slides [PPTX], Notes [PDF]

J.C.R. Licklider and Robert W. Taylor, The Computer as a Communication Device, 1968.

Tim Berners-Lee: Answers for Young People

Office Hours Cancelled

Posted by David Evans on 28 Nov 2011 in Announcements, Office Hours | Comments Off

Sorry, I will not be able to hold my scheduled office hours today. I will have my office hours tomorrow (Tuesday, 11-noon). If that doesn’t work, please email me to arrange another time. (Kristina will still have her normal office hours in Davis Commons, noon-1:30 today.)

Grades Update

Posted by David Evans on 27 Nov 2011 in Announcements, Problem Sets | Comments Off

Everyone in the class should have received an email from the alonzo-bot that summarizes the grades recorded for you so far. If you did not receive this email, or found anything incorrect or confusing in it, please email me,

If you did the J option for PS8, this email should also contain comments on PS8. If you did the other option for PS8, you should have received an email from me in reply to your message.

Problem Set Comments, PS8 Part 2

Posted by David Evans on 26 Nov 2011 in Announcements, Problem Sets | Comments Off

Comments for previous problem sets are now available: Problem Set 6 Comments, Problem Set 7 Comments, and Problem Set 8[J] (Part 1) Comments. Sorry for not posting the PS6 and PS7 comments earlier.

The second part of PS8 for the Java option is here: Problem Set 8J (Part 2): Typed Aazda.

« Older Entries
Next Entries »


Fall 2011

Register
Login

Help Schedule

(all in Davis Commons, except Dave's office hours in Rice 507)
Sundays, 1-6pm (Valerie/Joseph/Kristina)
Mondays, noon-1:30pm (Kristina)
Mondays, 1:15-2:00pm (Dave, Rice 507)
Tuesdays, 11am-noon (Dave, Rice 507)
Tuesdays, 5-8pm (Valerie/Jonathan)
Wednesdays, 5-6:30pm (Jiamin)
Thursdays, 9:45-11am (Dave, Rice 507)
Thursdays, 1-2:30pm (Joseph)
Thursdays, 4:30-7:30pm (Jonathan/Jiamin)
Fridays, noon-1:30pm (Peter)

Recent Posts

  • Course Wrap-Up
  • Class 41: The Cake of Computing
  • PS8 Submissions
  • Class 40: GuardRails, Big Data, and Secure Computation
  • Exam 2 Solutions

Recent Comments

  • David Evans on Problem Sets
  • jacob777 on Problem Sets
  • Prof. K.R. Chowdhary on Class 41: The Cake of Computing
  • Anon on Exams
  • Anon on Exams

Index

  • Classes
    • Class 1: Computing
    • Class 2: Language
    • Class 3: Rules of Evaluation
    • Class 4: Constructing Procedures
    • Class 5: Procedures Practice
    • Class 6: Programming with Data
    • Class 7: Programming with Lists
    • Class 8: Recursive List Procedures
    • Class 9: Consistent Hashing
  • Conveying Computing
  • Exams
  • Fractal Gallery
  • Guides
    • DrRacket Guide
    • Schemer’s Guide to Python
  • Problem Sets
    • Problem Set 0: Course Registration, Racket
    • Problem Set 1: Making Mosaics
      • PS1 Comments
    • Problem Set 2: Sequence Alignment
      • PS2 Comments
    • Problem Set 3: Limning L-System Fractals
      • PS3 – Comments
    • Problem Set 4: Constructing Colossi
      • PS4 – Comments
    • Problem Set 5: Wahoo! Auctions
      • PS5 Comments
    • Problem Set 6: Adventures in Charlottansville
      • PS6 Comments
    • Problem Set 7: Charming Snakes with Mesmerizing Memoizers
      • PS7 Comments
      • PS7 Responses
    • Problem Set 8 (Part 2): Typed Aazda
    • Problem Set 8: From Aazda to aaZda (Part 1)
      • PS8 Part 1 Comments
  • Syllabus
    • Course Pledge
  • Using These Materials

RSS BA Computer Science

RSS Jefferson’s Wheel

  • Virginia Consumer Data Protection Act
  • Algorithmic Accountability and the Law
  • Microsoft Security Data Science Colloquium: Inference Privacy in Theory and Practice
  • Fact-checking Donald Trump’s tweet firing Christopher Krebs

RSS Hacker News

  • Facebook Execs Silenced an Enemy of Turkey to Prevent a Hit to the Company
  • Signal Desktop is corrupting its database
  • Actually Portable Executables
  • Drivers locked out of their cars at Royston Tesco
  • Spaceprob.es catalogues all the probes that still communicate with Earth

RSS Babbage

cs1120 | RSS | Comments RSS | Book | Using These Materials | Login | Admin | Powered by Wordpress