Summary: | 碩士 === 元智大學 === 資訊工程學系 === 101 === Programming is a very important skill in the field of Computer Science. Homework is an important way for students to practice programming and evaluate their programming skills. When programming, students may encounter program bugs and cannot find the bugs to fix them.
Students usually seek teachers or teaching assistants to help find their bugs, but it needs time to find the bugs and it is a heavy load for teachers and teaching assistants. This paper study developed a static program assessment mechanism to compare student program with a model program to help students find their program errors. The system converted the model program and student programs into the form of abstract syntax tree, compared model program and student programs node-by-node, and recorded the same tokens nodes, miss tokens and extra tokens nodes between model programs and student programs. The system marked the different token of student programs by different font colors, presented teacher comments on miss tokens.
The evaluation results revealed that this mechanism reduced the range of possible error tokens to help students or teachers discover the program bugs and help teachers find out the key parts of the program.
|