Automatically Generating Questions About Scratch Programs

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Obermüller, Florian, Fraser, Gordon
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911207725727744
author Obermüller, Florian
Fraser, Gordon
author_facet Obermüller, Florian
Fraser, Gordon
contents When learning to program, students are usually assessed based on the code they wrote. However, the mere completion of a programming task does not guarantee actual comprehension of the underlying concepts. Asking learners questions about the code they wrote has therefore been proposed as a means to assess program comprehension. As creating targeted questions for individual student programs can be tedious and challenging, prior work has proposed to generate such questions automatically. In this paper we generalize this idea to the block-based programming language Scratch. We propose a set of 30 different questions for Scratch code covering an established program comprehension model, and extend the LitterBox static analysis tool to automatically generate corresponding questions for a given Scratch program. On a dataset of 600,913 projects we generated 54,118,694 questions automatically. Our initial experiments with 34 ninth graders demonstrate that this approach can indeed generate meaningful questions for Scratch programs, and we find that the ability of students to answer these questions on their programs relates to their overall performance.
format Preprint
id arxiv_https___arxiv_org_abs_2510_11658
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Automatically Generating Questions About Scratch Programs
Obermüller, Florian
Fraser, Gordon
Software Engineering
97P50
D.2.5; K.3.2
When learning to program, students are usually assessed based on the code they wrote. However, the mere completion of a programming task does not guarantee actual comprehension of the underlying concepts. Asking learners questions about the code they wrote has therefore been proposed as a means to assess program comprehension. As creating targeted questions for individual student programs can be tedious and challenging, prior work has proposed to generate such questions automatically. In this paper we generalize this idea to the block-based programming language Scratch. We propose a set of 30 different questions for Scratch code covering an established program comprehension model, and extend the LitterBox static analysis tool to automatically generate corresponding questions for a given Scratch program. On a dataset of 600,913 projects we generated 54,118,694 questions automatically. Our initial experiments with 34 ninth graders demonstrate that this approach can indeed generate meaningful questions for Scratch programs, and we find that the ability of students to answer these questions on their programs relates to their overall performance.
title Automatically Generating Questions About Scratch Programs
topic Software Engineering
97P50
D.2.5; K.3.2
url https://arxiv.org/abs/2510.11658