ACM Home Page
Please provide us with feedback. Feedback
An automatic testing and grading method for a C++ list class
Full text PdfPdf (316 KB)
Source ACM SIGCSE Bulletin archive
Volume 31 ,  Issue 2  (June 1999) table of contents
COLUMN: Reviewed papers table of contents
Pages: 48 - 50  
Year of Publication: 1999
ISSN:0097-8418
Author
Lewis E. Hitchner  California Polytechnic State University, San Luis Obispo, California
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 5,   Downloads (12 Months): 43,   Citation Count: 2
Additional Information:

abstract   references   cited by   collaborative colleagues  

Tools and Actions: Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/571535.571567
What is a DOI?

ABSTRACT

This paper presents a scheme for automatic grading of the member functions of a C++ list class. Developing an automatic grading program for C++ classes is non-trivial because a test case to verify one member function of the class may depend upon the correctness of one or more other class member functions. In addition, performing multiple test cases in the same driver program may produce invalid grading outcomes because an erroneous result from one test case could violate the preconditions for a later test case. The method described here uses a weakness of C++ data encapsulation that allows access to private data members of an object. Two instances of a list object are constructed, tested, and compared using student designed and instructor designed classes. If a test case produces incorrect results using the student's class, the instructor written class may be used (via a type cast) to access the private data members of the student's list object to correct the errors. The grading program automatically reports and tallies errors for each member function and for the class total.


REFERENCES

Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.

 
1
Hitchner, Lewis E., http://www.csc.calpoly.edu/~hitchner/CSC218.W98
 
2
Hitchner, Lewis E., http://www.csc.calpoly.edu/~hitchner/CSC218.W98/progAssign2.html
 
3
Hitchner, Lewis E., http://www.csc.calpoly.edu/~hitchner/CSC218.W98/TestPlan.doc.html
4
 
5