CPSC 202 Final: CS202 Yale Final 2004 solutions
Document Summary
Cis 110 spring 2013 final exam, 29 april 2013, answer key: (1 points) Miscellaneous (a) write your name, recitation number, and pennkey (username) on the front of the exam. (b) sign the certi cation that you comply with the penn academic integrity code. If there is an error, your answer should show that you know what causes the error, but you do not need to reproduce java"s error message exactly. Put a box around your answer so we can distinguish it from your scratch work. (a) b b = new b(7, "bad"); Exception in thread "main" java. lang. nullpointerexception at a. get() (b) b b = new b(7, "bad"); System. out. println(a. get()); bad bad (c) b b = new b(7, "bad"); System. out. println(a. c); bad (d) c b = new c(); Consider the following toy program, then answer the questions on the following page. You may assume that all assembly comments are correct. R[3] 0) goto 1b.