Grade C++ code judge with constructing abstract syntax tree model

Shuning? CUI,Ning WU,Dan YE
2015-01-01
Journal of Computer Applications
Abstract:Most C++ judge systems give a wrong or right binary grade, by comparing the results of programs and the standard testing cases. However, a more objective judge with considering the source code is needed in virtual labs and moocs. The method of computing the code similarity and the consequence similarity was enhanced to reflect the syntax similarity between the programming codes, by constructing an abstract syntax tree of the C++ code. Then a synthetical judge model about the C++ code was constructed. The average accuracy of this system reached 92. 11% compared with manual grading. A percent grade system replaced binary grade system that commonly adopted. A fairer mark was given because the systems not only considered the program” s consequence but also considered the construction and syntax of the code. The system also provides the foundation of online intelligent guidance in virtual lab.
What problem does this paper attempt to address?