CPSC 202 Final: CS202 Yale Final 2007 solutions

20 views6 pages
31 Jan 2019
Course
Professor

Document Summary

Cis 110 summer 2012 midterm, 7 june 2012, 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: (5 points) The line numbers are included for your convenience and are not part of the program. Identify ve errors in the following sorting routine that prevent it from compiling. Find the bugs if (input[j] < input[minindex]) int minindex = j; for (int i = 0; i < input. length; i++) int minindex = i; for (int j = i; j < input. length; j++) { 15: } int temp = input[i]; input[i] = input[minindex] input[minindex] = temp; return input[]; Give the type and value of each of the following java expressions. If an expression will crash or will not compile, write illegal under type and put an x in value.

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