Automatic Generation of Programming Exercises and Code Explanations Using Large Language Models
Aalto University · University of Auckland
Abstract
This article explores the natural language generation capabilities of large language models with application to the production of two types of learning resources common in programming courses. Using OpenAI Codex as the large language model, we create programming exercises (including sample solutions and test cases) and code explanations, assessing these qualitatively and quantitatively. Our results suggest that the majority of the automatically generated content is both novel and sensible, and in some cases ready to use as is. When creating exercises we find that it is remarkably easy to influence both the programming concepts and the contextual themes they contain, simply by supplying keywords as input to the…
Citation impact
- FWCI
- 89.12
- Percentile
- 100%
- References
- 94
Authors
4Topics & keywords
- Computer science
- Generative grammar
- Code (set theory)
- Quality (philosophy)
- Sample (material)
- Artificial intelligence
- Generative model
- Programming paradigm
- Quality Education