29
/pt/
pt
AIzaSyAYiBZKx7MnpbEhh9jyipgxe19OcubqV5w
April 1, 2024
2090308
174334
2

1 jun 1999 ano - An Automatic Testing and Grading Method for a C++ List Class

Descrição:

Authors:
Lewis E. Hitchner

Journal:
SIGCSE Bulletin vol.31

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.

Keywords:



Link:
file:///C:/Users/yeray/Zotero/storage/YCT65DN2/Hitchner%20-%201999%20-%20An%20Automatic%20Testing%20and%20Grading%20Method%20for%20a%20C++%20.pdf

Adicionado na linha do tempo:

12 nov 2018
0
0
444
Automatic Assessment Systems Timeline

Data:

1 jun 1999 ano
Agora
~ 24 years ago
PremiumAbout & FeedbackAcordoPrivacidade
logo
© 2022 Selected Technologies LLC – Morgan Hill, California