CISC181 Midterm 2, 06S, Post-Exam Notes

These notes are here to help you understand what you missed on the exam, and to provide at least a partial rubric for how it was graded.

The complete exam (with answer key) is available online—however, in that document, question 10 is formatted differently than it was on the actual exam. This web page shows how it was actually formatted.

Questions 1-9

These questions were multiple choice. The median score was 26/30, meaning that half the class scored a B+ or higher. Furthermore, only 10 students scored lower than 21/30 (i.e. less than a C-). The answers are posted online, so I'm not going to add any detailed comments here.

Question 10

This question was a two-page 11 x 17 foldout sheet. The images below show correct answers. These are scans from actual exam papers of students with perfect scores on this question. There were at least* seven such papers.

(*I have not yet graded the papers of those not putting their section number on page one.)

q10 text

Part a, b: idempotent header files, and function prototypes for get functions

(a) making the #include file idempotent.
Sample deductions:
(b) function prototypes for the get functions
Sample deductions:
 

q10 a,b

Part c,d,e: member function definitions

(c) function definitions for the get functions
Sample deductions:
(d,e) the body of the function definitions for the set functions
Sample deductions:

q10 c,d,e

Part f, g, h: using classes in a main program

(f) doing a #include on the header file
Sample deductions:
(g) invoking the two setter methods
You needed to inoke the setter methods on the object t. Some sample deductions:
 
(h) invoking the constructor on x, but passing in temp and room
Some sample deductions:

q10 f,g,h

Part i, j: compiling C++ classes with Makefiles

 

(i) defining the CCC variable
Sample deductions:
(c) defining the line in the Makefile that links
Sample deductions:

q10 i,j

 

Question 11

Question 11 involved type expressions. Most students did well here—at the time I am writing this, I only have data for those students that put their section number on page 1 of their exam, but among those students, half scored an 18/20 or higher, and three-quarters scored a 14/20 (i.e. a C-) or higher. Therefore, I'm not going to go over this part in detail—the answers are online, and there are a large number of practice problems online as well.


Valid XHTML 1.1 Valid CSS!