首页 | 本学科首页   官方微博 | 高级检索  
     

有语法错误的编程题自动评分方法研究——用局部语法分析和采分点匹配实现
引用本文:王倩,苏小红,马培军.有语法错误的编程题自动评分方法研究——用局部语法分析和采分点匹配实现[J].计算机工程与应用,2010,46(17):239-242.
作者姓名:王倩  苏小红  马培军
作者单位:哈尔滨工业大学,计算机科学与技术学院,哈尔滨,150001
摘    要:针对传统的编程题自动评分方法对存在个别语法错误的学生考试程序只能给出零分、不符合卷面笔试时教师手工阅卷习惯的问题,提出了一种适用于有错误的编程题的评分方法,首先,将有语法错误的学生程序分解为基本语句单元,与模板采分点语句一并经过局部语法分析,转化为语法分析树的中间表示,然后进行采分点匹配,进而输出有语法错误的学生程序的评分结果,该方法适用于考察答题者对基本语法知识的正确使用和对题目关键语义的正确表达,使得对有语法错误的学生程序的评分结果更加符合人工阅卷的思想。

关 键 词:编程题自动评分  采分点匹配  局部语法分析  基本语句单元  语法分析树
收稿时间:2008-12-4
修稿时间:2009-2-23  

Automatic grading method for programs with syntax error——Via local syntax analysis and key point matching
WANG Qian,SU Xiao-hong,MA Pei-jun.Automatic grading method for programs with syntax error——Via local syntax analysis and key point matching[J].Computer Engineering and Applications,2010,46(17):239-242.
Authors:WANG Qian  SU Xiao-hong  MA Pei-jun
Affiliation:(School of Computer Science and Technology,Harbin Institute of Technology,Harbin 150001,China )
Abstract:The programs having errors in syntax submitted to some programming examination automatic grading systems can only be given zero point.To solve this problem,which is not coincided with the habit of artificial test paper marking,an automatic grading method called key point matching is provided to tolerate syntactic errors.This method divides the student programs into basic sentence pieces and transforms every basic sentence piece or each key sentence marked in template programs to a syntax tree to do a local syntax analysis for the following key point matching.This paper focuses on the accurate expressions of specific basic syntactic and semantic points in student programs and enhances the performance of the grading system to be in accord with the idea of manual grading better.
Keywords:automatic grading of programs  key point matching  local syntax analysis  basic sentence piece  syntax tree
本文献已被 维普 万方数据 等数据库收录!
点击此处可从《计算机工程与应用》浏览原始摘要信息
点击此处可从《计算机工程与应用》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号