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

TL;DR
This study explores using regular-expression-based questions with string completion hints in a CS1 course, demonstrating high accuracy in grading and reducing instructor workload over four years with 497 students.
Contribution
It introduces a novel approach of using regex templates and hints for self-learning in programming education, showing its effectiveness and impact on teaching workload.
Findings
Regex questions achieved over 99% precision and recall.
Formative quizzes reduced instructor assistance significantly.
Some students used quizzes mainly to learn answers.
Abstract
One of the important scaffolding tasks in programming learning 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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
