28-CS106X-Practice-Midterm - CS106X Winter 2008 Handout 28...

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

View Full Document Right Arrow Icon
CS106X Handout 28 Winter 2008 February 13, 2008 CS106X Practice Midterm Exam Facts: When: Tuesday, February 19 th at 7:00 p.m. Where: Gates B01 Coverage The midterm will test everything up through this past Monday’s lecture on pointers and arrays (but no linked lists), though the exam will emphasize material exercised by the three large assignments. We will not be especially picky about syntax or other conceptually shallow ideas. We are looking for a clear understanding of the core programming concepts in C++. The exam is open-book and open-notes, but no computers allowed. Don't let the open- book nature mislead you. There is not enough time to learn or re-learn the material during a three-hour window. You should be experienced enough with the material to readily answer the questions, relying on your notes only for the occasional detail. Writing code on paper in a relatively short time period is not quite the same as working with the compiler and a keyboard. I recommend that you practice until you are comfortable handwriting solutions in to small problems starting from a blank sheet of paper. You won't have to look far to find lots of practice problems (this handout, section handouts, textbook exercises, lecture examples, etc.). SCPD students can either come to campus, or they can take the exam remotely anytime after Tuesday night at 7:00 p.m. The exam will be posted as a handout once it’s been administered, at which point you can pull it, print it, give yourself an uninterrupted block of three hours to take it, and then fax it in to me when you’re done. My cell and fax numbers will be printed on the front page of the exam. You can call me during if you have questions, and you can use the fax number to get us a copy of your exam. Hold on to your original until you get the faxed copy back. You don’t need to take the exam at the office, and you don’t need a proctor. Just self-administer so you have maximum flexibility on when you take the exam. Note: This exam is slightly longer than you’ll see on Tuesday night. I thought it was more important to put as many examples on the practice midterm as possible.
Background image of page 1

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

View Full DocumentRight Arrow Icon
Problem 1: Buying Real Estate Caldwell Banker, considered by many to be the best real estate brokerage in California, has hired you to build a web site showing all of the properties on the market in the San Francisco Bay area. Here are the data structures you’ve come up with: enum propertyType { SingleFamilyHome, Loft, Condominium }; struct propertyDistrict { string city; // "San Francisco" int zipcode; // 94114 }; struct propertyAddress { int number; // 355 string street; // "Noe Street" propertyDistrict *district; // pointer to district within master database }; struct propertyListing { propertyAddress address; propertyType type; bool hasParking; double askingPrice; }; struct propertyDatabase { propertyDistrict districts[147]; // exactly 147 zip codes covered by realtor
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.

Page1 / 7

28-CS106X-Practice-Midterm - CS106X Winter 2008 Handout 28...

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