Sp04M1SuggestedSolutionAndCriteria

- Spring 2004 Midterm 1 suggested solutions On question 1 I also list the concept being tested(ignore differences in spacing capitilizaition 1

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

View Full Document Right Arrow Icon
Sheet1 Page 1 Spring 2004, Midterm 1 suggested solutions. On question 1 I also list the concept being tested. (ignore differences in spacing, capitilizaition) 1. Answer as written or -2 A. Order of operations, variables 25 B.implict casting, mixed mnode arithmetic 2.5 C.arrays, array initialization, length field 9 D.for loops 40 E.Strings, calling methods, for loops cte F.behavior of value parameters, primitive parameters 1239 1239 G.behavior of value parameters, pointers as value parameters BrownBrown blueblue H.behavior of value parameters, pointers as value parameters BrownBrown BrownBrown I.== and pointers FALSE J.accessing private data members (made a mistake on identifier) syntax error. hair not defined or hair has private access K.pointers and sharing pointees greygrey greygrey L.inheritance of methods, abstract methods 24 3D Shape M.polymorphism of variables 6 1 3D Shape N.interfaces syntax error
Background image of page 1

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

View Full DocumentRight Arrow Icon
Sheet1 Page 2 0.2d arrays 84 8 2 most common errors were: confusing the number of outcomes with the outcomes
Background image of page 2
Image of page 3
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 / 8

- Spring 2004 Midterm 1 suggested solutions On question 1 I also list the concept being tested(ignore differences in spacing capitilizaition 1

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

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