arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.11658cs.SE
收藏

自动生成关于 Scratch 程序的问题

Automatically Generating Questions About Scratch Programs

University of Passau(帕绍大学)

Florian Obermüller, Gordon Fraser

AI总结:

本文扩展 LitterBox 静态分析工具,为基于积木的编程语言 Scratch 自动生成涵盖程序理解模型的 30 类问题,在 600,913 个项目中生成超 5400 万问题,并经 34 名学生实验验证了其有效性与学生表现的相关性。

摘要:

在学习编程时,学生通常根据他们编写的代码进行评估。然而,仅仅完成编程任务并不能保证对底层概念有实际的理解。因此,向学习者提出关于他们所写代码的问题已被提议作为评估程序理解的一种手段。由于为每个学生的程序创建有针对性的问题可能既繁琐又具有挑战性,先前的工作已提出自动生成此类问题。在本文中,我们将这一想法推广到基于积木的编程语言 Scratch。我们为 Scratch 代码提出了一组 30 个不同的问题,涵盖了一个成熟的程序理解模型,并扩展了 LitterBox 静态分析工具,以自动为给定的 Scratch 程序生成相应的问题。在包含 600,913 个项目的数据集上,我们自动生成了 54,118,694 个问题。我们对 34 名九年级学生进行的初步实验表明,这种方法确实能够为 Scratch 程序生成有意义的问题,并且我们发现学生回答这些关于其程序问题的能力与他们的整体表现相关。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑