paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Write a Line: Tests with Answer Templates and String Completion Hints for Self-Learning in a CS1 Course

Write a Line:在 CS1 课程中用于自学的带答案模板与字符串补全提示的测验
ICSE 2022 IEEE/ACM 44th International Conference on Software Engineering: Software Engineering Education and Training (ICSE-SEET)2022匹配度 1/10 · 论文聚焦CS1编程教学中的形成性测验与正则表达式答案模板匹配,属于编程教育/自动评测,不涉及静态分析、Agent、LLM驱动的程序分析或浮点/贝叶斯程序分析,与研究画像核心方向基本无关。引用 2 inbox
Oleg Sychev
crossref: 2026-09-12

AI 速览

一句话:报告基于正则表达式答案模板与字符串补全提示的 CS1 形成性测验,单行代码判定精度/召回率超 99%,并显著减少教师答疑。

学习编程时,学生需要在写复杂程序前通过即时反馈练习编写一行代码,但代码答案高度多变。本文采用模板匹配方法,在 CS1 课程中使用基于 Perl 兼容正则表达式的答案模板与字符串补全提示进行测验。作者报告了连续 4 年、497 名学生的使用与评估结果:对要求写单行代码的问题,正则表达式判定取得超过 99% 的精确率和召回率,并能无论学生初始答案多错都给出字符串补全反馈。引入带补全提示的形成性测验后,教师与助教收到的相关答疑显著减少,大多数练习尝试无需教学人员帮助即可找到正确答案;但也有部分学生只利用测验获取正确答案而不实际作答。

问题
在 CS1 课程中,如何为编写单行代码的练习自动判定高度多变的答案,并提供即时反馈以支持自学并减少教师答疑负担。
方法
使用基于 Perl 兼容正则表达式的答案模板匹配,并在形成性测验中提供字符串补全提示。
评估
在 4 年、497 名学生的 CS1 课程中部署,统计单行代码问题的判定精确率与召回率、教师答疑变化,并观察学生使用行为。
原文摘要(Abstract)

One of the important tasks in learning programming is writing a line of code performing the necessary action. This allows students to practice skills in a playground with instant feedback before writing more complex programs and increases their proficiency when solving programming problems. However, answers in the form of program code have high variability. Among the possible approaches to grading and providing feedback, we chose template matching. This paper reports the results of using regular-expression-based questions with string completion hints in a CS1 course for 4 years with 497 students. The evaluation results show that Perl-compatible regular expressions provide good precision and recall (more than 99%) when used for questions requiring writing a single line of code while being able to provide string-completion feedback regardless of how wrong the initial student’s answer is. After introducing formative quizzes with string-completion hints to the course, the number of questions that teachers and teaching assistants received about questions in the formative quizzes dropped considerably: most of the training question attempts resulted in finding the correct answer without help from the teaching staff. However, some of the students use formative quizzes just to learn correct answers without actually trying to answer the questions.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot10959,
  title = {Write a Line: Tests with Answer Templates and String Completion Hints for Self-Learning in a CS1 Course},
  author = {Oleg Sychev},
  booktitle = {ICSE},
  year = {2022},
  doi = {10.1109/icse-seet55299.2022.9794157}
}