English

Exploring the Potential of Large Language Models in Generating Code-Tracing Questions for Introductory Programming Courses

Computation and Language 2023-10-25 v1 Computers and Society

Abstract

In this paper, we explore the application of large language models (LLMs) for generating code-tracing questions in introductory programming courses. We designed targeted prompts for GPT4, guiding it to generate code-tracing questions based on code snippets and descriptions. We established a set of human evaluation metrics to assess the quality of questions produced by the model compared to those created by human experts. Our analysis provides insights into the capabilities and potential of LLMs in generating diverse code-tracing questions. Additionally, we present a unique dataset of human and LLM-generated tracing questions, serving as a valuable resource for both the education and NLP research communities. This work contributes to the ongoing dialogue on the potential uses of LLMs in educational settings.

Keywords

Cite

@article{arxiv.2310.15317,
  title  = {Exploring the Potential of Large Language Models in Generating Code-Tracing Questions for Introductory Programming Courses},
  author = {Aysa Xuemo Fan and Ranran Haoran Zhang and Luc Paquette and Rui Zhang},
  journal= {arXiv preprint arXiv:2310.15317},
  year   = {2023}
}

Comments

Accepted by Findings of EMNLP, 2023

R2 v1 2026-06-28T12:59:32.160Z