Research and Practice in Technology Enhanced Learning | 2026
Authors: Ta N.B.D.; Nguyen H.G.P.; Gottipati S.
DOI: 10.58459/rptel.2026.21025
Journal: Research and Practice in Technology Enhanced Learning
Year: 2026
Publisher: Asia-Pacific Society for Computers in Education
Document Type: Article
Open Access: All Open Access; Gold Open Access; Green Open Access
Cited by: 0
Despite recent advances in code generation made possible by large language models (LLMs), programming is still an essential skill that computing students need to master now and in the foreseeable future. In learning programming, frequent practices with exercises set at an appropriate difficulty and knowledge level is of crucial importance for students. However, it's not a trivial task for instructors to create many good quality exercises customized for each student. Programming problems found on Internet sources such as LeetCode are mostly too challenging for novice programmers with no prior coding knowledge. Recent work in AI-enabled education has been leveraging LLMs for adaptive feedback generation on code submitted by students. Not much work has been done in generating customized exercises for students to have more practice. In this work, we propose ExGen, an automatic exercise generation system which uses LLMs such as OpenAI's GPT models to generate on-demand, customized, and ready-to-use programming exercises for individual students. ExGen is designed as a plugin to Visual Studio Code. It incorporates a set of prompting strategies for candidate exercise generation, and a novel chain of automatic filtering mechanisms to select ready-to-use exercises. ExGen is convenient to use as compared to chatbots such as ChatGPT. We have conducted an extensive performance evaluation using more than 1400 generated Python exercises. We considered several prompting strategies with various keyword and seed exercise types, filtering techniques, difficulty levels, and LLMs with different generative performance and cost. The results demonstrated the effectiveness of ExGen's design and implementation. © The Author(s). 2025.
Auto-filtering; Difficulty levels; LLMs; Programming courses; Prompt engineering; Ready-to-use exercise generation