Fa08m1Crit - CS307 Fall 2008 Midterm 1 Solution and Grading...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
CS307 Fall 2008 Midterm 1 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. Generally no points off NPE - Null Pointer Exception may occur OBOE - Off by one error. Calculation is off by one. 1. Answer as shown or -2 unless question allows partial credit. No points off for differences in spacing and capitalization. If quotes included, okay. A. 9 B. Yes, an array index out of bounds error would occur when the method tried to access list[2]. (or words to that effect) C. 3 D. 4 E. 18 F. [7, 1, 6] (comma differences and brace differences okay, just need 7 1 and 6 in that order. G - I. Can be other than legal / illegal. Some way of saying declartion is okay or not. G. 1: illegal, 2: legal H. 1: legal, 2: illegal I. 1: legal, 2: illegal J. Syntax error (can't access private data) K. 5 L. Shoes M. 12 N. 25 O. It does not compile because the only consructor in GamePeg implicity tries to call the default constructor in Peg. There is no default constructor in Peg so the class won't compile. (or words to that effect.)
Background image of page 1

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

View Full DocumentRight Arrow Icon
Background image of page 2
2. Comments: This was meant to be an easy problem, but a lot of students had issues with the abstyraction. An IntList is not an array and an array is not an IntList. Perhaps it is easy to deal use abstractions but not as easy to create
Background image of page 3

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

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/30/2010 for the course CS 307 taught by Professor Scott during the Spring '08 term at University of Texas at Austin.

Page1 / 6

Fa08m1Crit - CS307 Fall 2008 Midterm 1 Solution and Grading...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online