46-practice-final

46-practice-final - Mehran Sahami CS106A Handout #46...

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

View Full Document Right Arrow Icon
Mehran Sahami Handout #46 CS106A December 2, 2009 Practice Final Examination Final Exam Time: Thursday, December 10th, 12:15pm-3:15pm (Please note: there is no alternate Final Exam time available) Final Exam Location: Last name starting with A-J: Cubberley Aud. Last name starting with K-Z: Hewlett 200 Portions of this handout by Eric Roberts This handout is intended to give you practice solving problems that are comparable in format and difficulty to those which will appear on the final exam. Final Exam is open book, open notes, closed computer The examination is open-book (specifically the course textbook The Art and Science of Java and the Karel the Robot coursereader, although the Karel material will not be covered on the exam) and you may make use of any handouts, course notes/slides, printouts of your programs or other notes you've taken in the class. You may not, however, use a computer of any kind (i.e., you cannot use laptops on the exam). Coverage The final exam covers the material presented throughout the class (with the exception of the Karel material), which means that you are responsible for Chapters 1 through 13 of the class textbook The Art and Science of Java . You will not be responsible for the "standard Java" material (i.e., the main method, JAR files) covered in class on November 18th nor the "advanced topics" on Threads covered in class on November 20th. General instructions Answer each of the questions included in the exam. Write all of your answers directly on the examination paper, including any work that you wish to be considered for partial credit. Each question is marked with the number of points assigned to that problem. The total number of points is 180. We intend for the number of points to be roughly comparable to the number of minutes you should spend on that problem. In all questions, you may include methods or definitions that have been developed in the course, either by writing the import line for the appropriate package or by giving the name of the method and the handout or textbook chapter number in which that definition appears. Unless otherwise indicated as part of the instructions for a specific problem, comments will not be required on the exam. Uncommented code that gets the job done will be sufficient for full credit on the problem. On the other hand, comments may help you to get partial credit if they help us determine what you were trying to do. Blank pages for solutions omitted in practice exam (but will be available on real exam) In an effort to save trees, the blank pages that would be provided in a regular exam for writing your solutions have been omitted from this practice exam.
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: Short answer (15 points) 1a. We learned that when you pass an object as a parameter into a method, changes that are made to the object persist after the method completes execution. However, if you pass in an int as a parameter and change the value of that parameter in a method, the original int variable that was passed in remains unchanged. Explain why that is.
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 / 9

46-practice-final - Mehran Sahami CS106A Handout #46...

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