26-CS106X-Midterm

26-CS106X-Midterm - p CS106X Autumn 2009 Handout 26 CS106X...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
p CS106X Handout 26 Autumn 2009 November 4 th , 2009 CS106X Midterm Examination This is an open-note exam. You can refer to any course handouts, handwritten lecture notes, and printouts of any code relevant to a CS106X assignment. You may not use any laptops, cell phones, or handheld devices of any sort. Anyone taking the exam remotely can call in to ask questions: 415-205-2242. Once remote students are done, they should fax all pages to 650-723-6092. Good luck! Section Leader: _____________________ Last Name: _____________________ First Name: _____________________ I accept the letter and spirit of the honor code. I’ve neither given nor received aid on this exam. I pledge to write more neatly than I ever have in my entire life. (signed) __________________________________________________________ Score Grader 1. Publishing Stories (8) ______ ______ 2. Numeric Palindromes (12) ______ ______ 3. Character Swaps (10) ______ ______ 4. Linked List Fun (15) ______ ______ Total (45) ______ ______ SCPD students who want their exams sent back through regular mail, check here: _____
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 Problem 1: Publishing Stories (8 points) Social networking sites like Facebook, LinkedIn, Orkut, and MySpace typically record and publish stories about actions taken by you and your friends. Stories such as: John Dixon accepted your friend request. Jeff Barbose is no longer in a relationship. Scott James wrote a note called "The Two Percent Solution". Arlene Heitner commented on Melodie Bowsher’s video. Antonio Melara gave The French Laundry a 5-star review. are created from story templates like {name} accepted your friend request. {name} is no longer in a relationship. {name} wrote a note called "{title}". {name} commented on {target}’s video. {actor} gave {restaurant} a {rating}-star review. The specific story is generated from the skeletal one by replacing the tokens—substrings like "{name}" , "{title}" , and "{rating}" —with event-specific values, like "John Dixon" , "The Two Percent Solution" , and "5" . The token-value pairs can be packaged in a
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/07/2010 for the course CS 201 taught by Professor Selimaksoy during the Spring '09 term at Bilkent University.

Page1 / 10

26-CS106X-Midterm - p CS106X Autumn 2009 Handout 26 CS106X...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online