{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Sp08FinalCrit

# Sp08FinalCrit - CS307 Spring 2008 Final Solution and...

This preview shows pages 1–2. Sign up to view the full content.

CS307 Spring 2008 Final Solution and Grading Criteria. Grading acronyms: ABA - Answer by Accident AIOBE - Array Index out of Bounds Exception may occur BOD - Benefit of the Doubt. Not certain code works, but, can't prove otherwise ECF - Error carried forward. Gacky or Gack - Code very hard to understand even though it works or solution is not elegant. (Generally no points off for this.) GCE - Gross Conceptual Error. Did not answer the question asked or showed fundamental misunderstanding NAP - No answer provided. No answer given on test NN - Not necessary. Code is unneeded. NPE - Null Pointer Exception may occur OBOE - Off by one error. Calculation is off by one. 1. 1.5 points per question. No partial credit. On Big O question if answer is O(N) N is acceptable. No constants or extra terms on Big O. For example if answer is O(N) then O(4N) is counter wrong as is O(N + 10). A. 7 / 0 / \ -5 5 / 3 B. CAKAJSEM C. KJASACME D. JSAKAMEC E. No F. 4 G. O(logN) H. The declared type of the get method for the raw ArrayList is Object. Object does not have a charAt method. I. There is an infinite loop if the target is found due to the short circuiting of the or (||). J. THAAHT K. O(N) L. O(logN) M. O(N) N. O(N) O. O(N^2) P. O(N^2) Q. 16 seconds R. Sort the data.

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern