CPSC 202 Final: CS202 Yale Final 2004 solutions

22 views6 pages
31 Jan 2019
Course
Professor

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.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents