Automatic Generation of Programming Exercises and Code Explanations using Large Language Models
Not on the map. Why?
Abstract (arXiv)
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 model. Our analysis suggests that there is significant value in massive generative machine learning models as a tool for instructors, although there remains a need for some oversight to ensure the quality of the generated content before it is delivered to students. We further discuss the implications of OpenAI Codex and similar tools for introductory programming education and highlight future research streams that have the potential to improve the quality of the educational experience for both teachers and students alike.
Key facts. Cited by 126 papers in the map (data through 14 Oct 2026). Builds on 10 of its 103 references that are in the map. First posted on arXiv 3 Jun 2022.
Builds on
10 of 103 references.
References · 10
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,374
- 2022Competition-Level Code Generation with AlphaCodecited by 1,462
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
- 2021Large Pre-trained Language Models Contain Human-like Biases of What is Right and Wrong to Docited by 178
- 2021A Neural Network Solves, Explains, and Generates University Math Problems by Program Synthesis and Few-Shot Learning at Human Levelcited by 96
- 2022Pop Quiz! Can a Large Language Model Help With Reverse Engineering?cited by 14
- 2022To What Extent do Deep Learning-based Code Recommenders Generate Predictions by Cloning Code from the Training Set?cited by 11
- 2021Let's Ask Students About Their Programs, Automaticallycited by 3
Built on by
Citing papers per year: 2022: 5; 2023: 47; 2024: 45; 2025: 19; 2026: 10.
126 papers.
Sort:
By area:
- 2022CodeT: Code Generation with Generated Testscited by 384
- 2023Using an LLM to Help With Code Understandingcited by 228
- 2023Domain Specialization as the Key to Make Large Language Models Disruptive: A Comprehensive Surveycited by 135
- 2022Programming Is Hard -- Or at Least It Used to Be: Educational Opportunities And Challenges of AI Code Generationcited by 99
- 2023The Robots are Here: Navigating the Generative AI Revolution in Computing Educationcited by 86
- 2024CodeAid: Evaluating a Classroom Deployment of an LLM-based Programming Assistant that Balances Student and Educator Needscited by 84
- 2023Practical and Ethical Challenges of Large Language Models in Education: A Systematic Scoping Reviewcited by 83
- 2022Conversing with Copilot: Exploring Prompt Engineering for Solving CS1 Problems Using Natural Languagecited by 82
- 2022Language Models Can Teach Themselves to Program Bettercited by 78
- 2023Is ChatGPT the Ultimate Programming Assistant -- How far is it?cited by 76
- 2024Building Machines that Learn and Think with Peoplecited by 73
- 2023CodeHelp: Using Large Language Models with Guardrails for Scalable Support in Programming Classescited by 72
38 more
- 2022Using Large Language Models to Enhance Programming Error Messagescited by 67
- 2023"It's Weird That it Knows What I Want": Usability and Interactions with Copilot for Novice Programmerscited by 64
- 2023Comparing Code Explanations Created by Students and Large Language Modelscited by 64
- 2023Computing Education in the Era of Generative AIcited by 52
- 2024The Widening Gap: The Benefits and Harms of Generative AI for Novice Programmerscited by 48
- 2023Exploring the Responses of Large Language Models to Beginner Programmers' Help Requestscited by 46
- 2023Thrilled by Your Progress! Large Language Models (GPT-4) No Longer Struggle to Pass Assessments in Higher Education Programming Coursescited by 39
- 2023Generative AI for Programming Education: Benchmarking ChatGPT, GPT-4, and Human Tutorscited by 39
- 2023A Comparative Study of AI-Generated (GPT-4) and Human-crafted MCQs in Programming Educationcited by 35
- 2023Generating High-Precision Feedback for Programming Syntax Errors using Large Language Modelscited by 34
- 2023Detecting LLM-Generated Text in Computing Education: A Comparative Study for ChatGPT Casescited by 32
- 2023Automating Human Tutor-Style Programming Feedback: Leveraging GPT-4 Tutor Model for Hint Generation and GPT-3.5 Student Model for Hint Validationcited by 29
- 2025Rubric Is All You Need: Enhancing LLM-based Code Evaluation With Question-Specific Rubricscited by 29
- 2023Exploring Parameter-Efficient Fine-Tuning Techniques for Code Generation with Large Language Modelscited by 28
- 2023Exploring the Potential of Large Language Models to Generate Formative Programming Feedbackcited by 28
- 2023Refactoring Programs Using Large Language Models with Few-Shot Examplescited by 28
- 2023Evaluation of OpenAI Codex for HPC Parallel Programming Models Kernel Generationcited by 22
- 2024The Landscape and Challenges of HPC Research and LLMscited by 22
- 2023Next-Step Hint Generation for Introductory Programming Using Large Language Modelscited by 20
- 2023AI-native Interconnect Framework for Integration of Large Language Model Technologies in 6G Systemscited by 19
- 2025LAMD: Context-driven Android Malware Detection and Classification with LLMscited by 18
- 2023Promptly: Using Prompt Problems to Teach Learners How to Effectively Utilize AI Code Generatorscited by 17
- 2023Exploring the Robustness of Large Language Models for Solving Programming Problemscited by 16
- 2023Harnessing LLMs in Curricular Design: Using GPT-4 to Support Authoring of Learning Objectivescited by 16
- 2024Improving Socratic Question Generation using Data Augmentation and Preference Optimizationcited by 16
- 2024Feedback-Generation for Programming Exercises With GPT-4cited by 14
- 2024Beyond the Hype: A Comprehensive Review of Current Trends in Generative AI Research, Teaching Practices, and Toolscited by 14
- 2023ChatGPT in the Classroom: An Analysis of Its Strengths and Weaknesses for Solving Undergraduate Computer Science Questionscited by 13
- 2023Neural Task Synthesis for Visual Programmingcited by 13
- 2023Conceptual Design Generation Using Large Language Modelscited by 13
- 2023Evaluating ChatGPT and GPT-4 for Visual Programmingcited by 13
- 2024Evaluating Contextually Personalized Programming Exercises Created with Generative AIcited by 13
- 2024Large Language Models in Computer Science Education: A Systematic Literature Reviewcited by 13
- 2023Can We Trust AI-Generated Educational Content? Comparative Analysis of Human and AI-Generated Learning Resourcescited by 12
- 2024Evaluating and Optimizing Educational Content with Large Language Model Judgmentscited by 12
- 2023Evoke: Evoking Critical Thinking Abilities in LLMs via Reviewer-Author Prompt Editingcited by 11
- 2023More Robots are Coming: Large Multimodal Models (ChatGPT) can Solve Visually Diverse Images of Parsons Problemscited by 11
- 2024How Novice Programmers Use and Experience ChatGPT when Solving Programming Exercises in an Introductory Coursecited by 11
50 most cited of 126 All 126 (JSON)
- 2026SocraticRepair: Planning-Guided Socratic Tutoring for Program Debugging and Misconception Repair10 Oct 2026
- 2026A Risk-Adaptive and Evidence-Constrained Framework for Generative AI Feedback in Programming Education24 Sep 2026
- 2026An Empirical Study of LLM-Generated Specifications for VeriFast25 Jun 2026
- 2026AI-Assisted Help-Seeking Trajectories in Programming Education from an SRL-Informed Perspective22 Jun 2026
- 2026AI-Generated Slides: Are They Good? Can Students Tell?13 May 2026
- 2026Designing Safe and Accountable GenAI as a Learning Companion with Women Banned from Formal Education8 Apr 2026
- 2026Evaluating LLMs for Answering Student Questions in Introductory Programming Courses30 Mar 2026
- 2026Personalized AI Practice Replicates Learning Rate Regularity at Scale9 Mar 2026
- 2026What Drives Students' Use of AI Chatbots? Technology Acceptance in Conversational AI24 Feb 2026
- 2026Human-Human-AI Triadic Programming: Uncovering the Role of AI Agent and the Value of Human Partner in Collaborative Learning17 Jan 2026
- 2025Enhancing Diversity of LLM-Generated Educational Tasks29 Dec 2025
- 2025From Moderation to Mediation: Can LLMs Serve as Mediators in Online Flame Wars?2 Dec 2025
38 more
- 2025Owlgorithm: Supporting Self-Regulated Learning in Competitive Programming through LLM-Driven Reflection13 Nov 2025
- 2025Scaffolding Metacognition in Programming Education: Understanding Student-AI Interactions and Design Implications6 Nov 2025
- 2025User Misconceptions of LLM-Based Conversational Programming Assistants29 Oct 2025
- 2025Investigating Student Interaction Patterns with Large Language Model-Powered Course Assistants in Computer Science Courses10 Sep 2025
- 2025Students' Feedback Requests and Interactions with the SCRIPT Chatbot: Do They Get What They Ask For?23 Jul 2025
- 2025Designing Conversational AI to Support Think-Aloud Practice in Technical Interview Preparation for CS Students19 Jul 2025
- 2025QiMeng-MuPa: Mutual-Supervised Learning for Sequential-to-Parallel Code Translation11 Jun 2025
- 2025Understanding Human-AI Trust in Education10 Jun 2025
- 2025Small but Significant: On the Promise of Small Language Models for Accessible AIED13 May 2025
- 2025Leveraging AI for Productive and Trustworthy HPC Software: Challenges and Research Directions13 May 2025
- 2025Scratch Copilot: Supporting Youth Creative Coding with AI6 May 2025
- 2025From Prompts to Propositions: A Logic-Based Lens on Student-LLM Interactions25 Apr 2025
- 2025Synthesizing High-Quality Programming Tasks with LLM-based Expert and Student Agents10 Apr 2025
- 2025Rubric Is All You Need: Enhancing LLM-based Code Evaluation With Question-Specific Rubrics31 Mar 2025
- 2025Prompt Programming: A Platform for Dialogue-based Computational Problem Solving with Generative AI Models6 Mar 2025
- 2025LAMD: Context-driven Android Malware Detection and Classification with LLMs18 Feb 2025
- 2025ScriptoriumWS: A Code Generation Assistant for Weak Supervision17 Feb 2025
- 2024Beyond the Hype: A Comprehensive Review of Current Trends in Generative AI Research, Teaching Practices, and Tools19 Dec 2024
- 2024Breaking the Programming Language Barrier: Multilingual Prompting to Empower Non-Native English Learners17 Dec 2024
- 2024Leveraging Large Language Models to Generate Course-specific Semantically Annotated Learning Objects5 Dec 2024
- 2024The Advancement of Personalized Learning Potentially Accelerated by Generative AI1 Dec 2024
- 2024BugSpotter: Automated Generation of Code Debugging Exercises21 Nov 2024
- 2024Automating Autograding: Large Language Models as Test Suite Generators for Introductory Programming14 Nov 2024
- 2024Evaluating the Ability of Large Language Models to Generate Verifiable Specifications in VeriFast4 Nov 2024
- 2024On the Opportunities of Large Language Models for Programming Process Data1 Nov 2024
- 2024Large Language Models in Computer Science Education: A Systematic Literature Review21 Oct 2024
- 2024Utilizing ChatGPT in a Data Structures and Algorithms Course: A Teaching Assistant's Perspective11 Oct 2024
- 2024Students' Perceptions and Use of Generative AI Tools for Programming Across Different Computing Courses9 Oct 2024
- 2024Integrating Natural Language Prompting Tasks in Introductory Programming Courses4 Oct 2024
- 2024Test Case-Informed Knowledge Tracing for Open-ended Coding Tasks28 Sep 2024
- 2024Exploring LLM-Driven Explanations for Quantum Algorithms26 Sep 2024
- 2024RACONTEUR: A Knowledgeable, Insightful, and Portable LLM-Powered Shell Command Explainer3 Sep 2024
- 2024Bridging the Language Gap: Enhancing Multilingual Prompt-Based Code Generation in LLMs via Zero-Shot Cross-Lingual Transfer19 Aug 2024
- 2024Decomposed Prompting to Answer Questions on a Course Discussion Board30 Jul 2024
- 2024How Novice Programmers Use and Experience ChatGPT when Solving Programming Exercises in an Introductory Course30 Jul 2024
- 2024Building Machines that Learn and Think with People22 Jul 2024
- 2024A Systematic Literature Review on the Use of Machine Learning in Software Engineering19 Jun 2024
- 2024GPT-Powered Elicitation Interview Script Generator for Requirements Engineering Training17 Jun 2024
50 newest of 126 All 126 (JSON)
- 2022CodeT: Code Generation with Generated Testscited by 384
- 2023Using an LLM to Help With Code Understandingcited by 228
- 2023Domain Specialization as the Key to Make Large Language Models Disruptive: A Comprehensive Surveycited by 135
- 2022Programming Is Hard -- Or at Least It Used to Be: Educational Opportunities And Challenges of AI Code Generationcited by 99
- 2023The Robots are Here: Navigating the Generative AI Revolution in Computing Educationcited by 86
- 2024CodeAid: Evaluating a Classroom Deployment of an LLM-based Programming Assistant that Balances Student and Educator Needscited by 84
- 2023Practical and Ethical Challenges of Large Language Models in Education: A Systematic Scoping Reviewcited by 83
- 2022Conversing with Copilot: Exploring Prompt Engineering for Solving CS1 Problems Using Natural Languagecited by 82
- 2022Language Models Can Teach Themselves to Program Bettercited by 78
- 2023Is ChatGPT the Ultimate Programming Assistant -- How far is it?cited by 76
- 2024Building Machines that Learn and Think with Peoplecited by 73
- 2022Using Large Language Models to Enhance Programming Error Messagescited by 67
12 most cited of 118 All 118 (JSON)
- 2026SocraticRepair: Planning-Guided Socratic Tutoring for Program Debugging and Misconception Repair10 Oct 2026
- 2026A Risk-Adaptive and Evidence-Constrained Framework for Generative AI Feedback in Programming Education24 Sep 2026
- 2026An Empirical Study of LLM-Generated Specifications for VeriFast25 Jun 2026
- 2026AI-Assisted Help-Seeking Trajectories in Programming Education from an SRL-Informed Perspective22 Jun 2026
- 2026AI-Generated Slides: Are They Good? Can Students Tell?13 May 2026
- 2026Designing Safe and Accountable GenAI as a Learning Companion with Women Banned from Formal Education8 Apr 2026
- 2026Evaluating LLMs for Answering Student Questions in Introductory Programming Courses30 Mar 2026
- 2026Personalized AI Practice Replicates Learning Rate Regularity at Scale9 Mar 2026
- 2026What Drives Students' Use of AI Chatbots? Technology Acceptance in Conversational AI24 Feb 2026
- 2026Human-Human-AI Triadic Programming: Uncovering the Role of AI Agent and the Value of Human Partner in Collaborative Learning17 Jan 2026
- 2025Enhancing Diversity of LLM-Generated Educational Tasks29 Dec 2025
- 2025From Moderation to Mediation: Can LLMs Serve as Mediators in Online Flame Wars?2 Dec 2025
12 newest of 118 All 118 (JSON)