C S 314 Midterm: Spring_2017_e1_GradingCrit_And_Solutions

24 views8 pages
31 Jan 2019
School
Course
Professor

Document Summary

Cs314 spring 2017 exam 1 solution and grading criteria. Aiobe - array index out of bounds exception may occur. Not certain code works, but, can"t prove otherwise. Gacky or gack - code very hard to understand even though it works. (solution is not elegant. ) Violated restrictions or made incorrect assumption: answer as shown or -1 unless question allows partial credit. No points off for minor differences in spacing, capitalization, commas, and braces: o(n3, o(n, between 5 and 15 acceptable. Descendant of musical) (. 5 points each: 1. valid 2. valid (. 5 points each, swan15, ben10 60, bnb12 6, true false, 6 (list not required, but legal types are cartoon, animated, The real difficulty was in comparing objects next to each other and ensuring the bounds of the loop were correct. Index out of bounds errors or checking all but the last element. Using con. length or size() instead of size.