Does ChatGPT Help With Introductory Programming?An Experiment of Students Using ChatGPT in CS1
Top Cited Papers
Open Access
- 14 April 2024
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 331-341
Abstract
Generative AI, notably ChatGPT, has garnered attention in computer science education. This paper presents a controlled experiment that explores ChatGPT's role in CS1 in a classroom setting. Specifically, we aim to investigate the impact of ChatGPT on student learning outcomes and their behaviors when working on programming assignments. Participants were tasked with creating a UML diagram and subsequently implementing its design through programming, followed by a closed-book post-evaluation and a post-survey. All the participants were required to screen-record the whole process. In total, 56 participants were recruited, with 48 successful screen recordings. Participants in the Experimental Group can access ChatGPT 3.5 and other online resources, such as Google and Stack Overflow when creating the UML diagram and programming; however, participants in the Control Group can access all online resources except for ChatGPT (i.e., the only design variable is the access to ChatGPT). Finally, we measured and analyzed participants' learning outcomes through their UML diagram, programming, and post-evaluation scores. We also analyzed the time participants took to complete the tasks and their interactions with ChatGPT and other resources from the screen recordings. After finishing the tasks, student participants also provided their perceptions of using ChatGPT in CS1 through a post-survey. With rigorous quantitative and qualitative analysis, we found that (1) using ChatGPT does not present a significant impact on students' learning performance in the CS1 assignment-style tasks; (2) once using ChatGPT, students' tendency to explore other traditional educational resources is largely reduced (though available) and they tend to rely solely on ChatGPT, and this reliance on ChatGPT did not guarantee enhanced learning performance; (3) the majority of students hold neutral views on ChatGPT's role in CS1 programming but most of them raised concerns about its potential ethical issues and inconsistent performance across different tasks. We hope this study can help educators and students better understand the impact of ChatGPT in CS1 and inspire future work to provide proper guidelines for using ChatGPT in introductory programming classes.Keywords
Funding Information
- NSF (CCF-2211429)
This publication has 24 references indexed in Scilit:
- From "Ban It Till We Understand It" to "Resistance is Futile": How University Programming Instructors Plan to Adapt as More Students Use AI Code Generation and Explanation Tools such as ChatGPT and GitHub Copilot2023
- ChatGPT for design, manufacturing, and educationProcedia CIRP, 2023
- “We Need To Talk About ChatGPT”: The Future of AI and Higher Education2023
- A Brief Overview of ChatGPT: The History, Status Quo and Potential Future DevelopmentIEEE/CAA Journal of Automatica Sinica, 2023
- Studying the effect of AI Code Generators on Supporting Novice Learners in Introductory Programming2023
- ChatGPT and Software Testing Education: Promises & Perils2023
- ChatGPT for good? On opportunities and challenges of large language models for educationLearning and Individual Differences, 2023
- What if the devil is my guardian angel: ChatGPT as a case study of using chatbots in educationSmart Learning Environments, 2023
- Deep learning applications in manufacturing operations: a review of trends and ways forwardJournal of Enterprise Information Management, 2022
- Generating Diverse Code Explanations using the GPT-3 Large Language Model2022