Empirical insights into the influence of ChatGPT-facilitated programming on primary learners’ performances: a mixed methods approach

ChatGPT, an AI-driven chatbot capable of generating code and providing timely, personalized feedback, offers new opportunities for supporting programming learning among younger learners. This study employed a quasi-experimental design to examine the effects of Self-Directed Programming (SDP) and ChatGPT-Facilitated Programming (CFP) learning modes on primary learners’ programming knowledge, skills, and attitudes. In addition, learners’ programming behaviors were explored within the CFP learning mode. A total of 71 primary learners were randomly assigned to either the CFP or SDP class. Learners in the SDP class engaged in self-directed programming activities, whereas learners in the CFP class learned programming through a ChatGPT-facilitated learning platform, CodewithAI. A mixed-methods approach was adopted to collect and analyze multidimensional data. The results revealed a significant difference in programming knowledge performance between the CFP and SDP classes. Behavioral analysis indicated that primary learners in the CFP class frequently sought assistance from ChatGPT when encountering programming challenges, particularly by requesting explanations of code and error messages. In addition, primary learners in the CFP class reported relatively high levels of confidence compared with those in the SDP class. Based on these findings, this study offers implications for the design of primary programming instruction and the development of AI-supported instructional tools. By providing fine-grained empirical evidence, this study contributes to the field of the effectiveness of ChatGPT-facilitated programming learning for primary students.

Authors

Institutions

Publication Details

Journal
International Journal of STEM Education
Published
2026-03-16
DOI
https://doi.org/10.1186/s40594-026-00606-1
Primary Topic
Artificial Intelligence in Healthcare and Education
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Empirical insights into the influence of ChatGPT-facilitated programming on primary learners’ performances: a mixed methods approach

Jiayi Xu, Rustam Shadiev, Dan Sun, Yan Li et al.
International Journal of STEM Education
Artificial Intelligence in Healthcare and Education
article

Empirical insights into the influence of ChatGPT-facilitated programming on primary learners’ performances: a mixed methods approach

Jiayi Xu, Rustam Shadiev, Dan Sun, Yan Li, Yue Feng
article en

Abstract

ChatGPT, an AI-driven chatbot capable of generating code and providing timely, personalized feedback, offers new opportunities for supporting programming learning among younger learners. This study employed a quasi-experimental design to examine the effects of Self-Directed Programming (SDP) and ChatGPT-Facilitated Programming (CFP) learning modes on primary learners’ programming knowledge, skills, and attitudes. In addition, learners’ programming behaviors were explored within the CFP learning mode. A total of 71 primary learners were randomly assigned to either the CFP or SDP class. Learners in the SDP class engaged in self-directed programming activities, whereas learners in the CFP class learned programming through a ChatGPT-facilitated learning platform, CodewithAI. A mixed-methods approach was adopted to collect and analyze multidimensional data. The results revealed a significant difference in programming knowledge performance between the CFP and SDP classes. Behavioral analysis indicated that primary learners in the CFP class frequently sought assistance from ChatGPT when encountering programming challenges, particularly by requesting explanations of code and error messages. In addition, primary learners in the CFP class reported relatively high levels of confidence compared with those in the SDP class. Based on these findings, this study offers implications for the design of primary programming instruction and the development of AI-supported instructional tools. By providing fine-grained empirical evidence, this study contributes to the field of the effectiveness of ChatGPT-facilitated programming learning for primary students.

International Journal of STEM Education
Hangzhou Normal University (CN), Hangzhou Vocational and Technical College (CN), Zhejiang University (CN)
Quality Education
Openalex Percentile: Top 22%
Artificial Intelligence in Healthcare and Education
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.