Fa03M1SolutionAndCriteria

Fa03M1SolutionAndCriteria - CS 307 Fall 03 Midterm 1...

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

View Full Document Right Arrow Icon
Sheet1 Page 1 CS 307 Fall 03 Midterm 1 Solution and Criteria 1 Criteria For all A-F the answer as below (ignore caps, spacing and line breaks) or -2 For G-H, words to the effect of those in the answer or -2. Use -1 at your disgression A 1 26 65 B Runtime error due to an array index out of bound exception. This was an unintended runtime error so the intened asnwer was also accepted. C 5 3 5 3 10 9 6 2 10 9 5 3 D Kit-Kat 200 Crunchy Kit-Kat 200 Crunchy Kit-Kat 600 Crunchy Kit-Kat 600 Crunchy E Snickers 300 with Peanuts Snickers 300 with Peanuts Snickers 500 with Peanuts Snickers 300 with Peanuts F Snickers 200 with Peanuts Snickers 200 with Peanuts G Runtime error due to a Null Pointer Exception. When cList is created it has 3 ChocolatyCancy object variables that are all null . T H SugaryCandy will not compile becuase it extends Candy but does not proivde an implemenation for the abstract method getD e I Polymorphism allows an object variable to hold the memory address of any object of that type, or any object vthat is a descen d J
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
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

Fa03M1SolutionAndCriteria - CS 307 Fall 03 Midterm 1...

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

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