AI-Supported Programming Environments and Pair Programming Role Strategies in Secondary School: An Exploratory Study

The integration of artificial intelligence (AI) into programming education has accelerated rapidly in recent years. Yet, existing research has largely focused on individual learning or human–AI interaction, with limited attention to human–human–AI collaboration and pair programming role strategies. This study conducted an exploratory comparison of learning outcomes across four classroom conditions combining AI support (with/without) and role strategy (fixed/rotating). Participants were 198 eighth-grade students from four intact classes in a public junior secondary school in Xi’an, China, who participated in an eight-week programming course. Linear mixed-effects models were used to examine programming performance, computational thinking, cognitive load, and programming anxiety. Programming performance differed by classroom condition (p = 0.023) and session (p = 0.014), with a significant classroom-condition-by-session interaction (p = 0.010). Tukey-adjusted comparisons showed higher estimated means in the AI-supported/rotating-role classroom than in the non-AI/fixed-role classroom in Session 1 and the AI-supported/fixed-role classroom in Session 2. Computational thinking did not differ significantly across conditions. The non-AI/fixed-role classroom showed higher cognitive load than the non-AI/rotating-role and AI-supported/rotating-role classrooms, and higher programming anxiety than the other three classrooms. Overall, this study offers exploratory insights into AI-supported programming and pair-programming roles in secondary education.

Authors

Institutions

Publication Details

Journal
Education Sciences
Published
2026-11-04
DOI
https://doi.org/10.3390/educsci16111866
Primary Topic
Teaching and Learning Programming
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

AI-Supported Programming Environments and Pair Programming Role Strategies in Secondary School: An Exploratory Study

Shu Zhao, Xiaoqing Shang, Congxin Wu, Yi Zhu
Education Sciences
Teaching and Learning Programming
article

AI-Supported Programming Environments and Pair Programming Role Strategies in Secondary School: An Exploratory Study

Shu Zhao, Xiaoqing Shang, Congxin Wu, Yi Zhu
article en

Abstract

The integration of artificial intelligence (AI) into programming education has accelerated rapidly in recent years. Yet, existing research has largely focused on individual learning or human–AI interaction, with limited attention to human–human–AI collaboration and pair programming role strategies. This study conducted an exploratory comparison of learning outcomes across four classroom conditions combining AI support (with/without) and role strategy (fixed/rotating). Participants were 198 eighth-grade students from four intact classes in a public junior secondary school in Xi’an, China, who participated in an eight-week programming course. Linear mixed-effects models were used to examine programming performance, computational thinking, cognitive load, and programming anxiety. Programming performance differed by classroom condition (p = 0.023) and session (p = 0.014), with a significant classroom-condition-by-session interaction (p = 0.010). Tukey-adjusted comparisons showed higher estimated means in the AI-supported/rotating-role classroom than in the non-AI/fixed-role classroom in Session 1 and the AI-supported/fixed-role classroom in Session 2. Computational thinking did not differ significantly across conditions. The non-AI/fixed-role classroom showed higher cognitive load than the non-AI/rotating-role and AI-supported/rotating-role classrooms, and higher programming anxiety than the other three classrooms. Overall, this study offers exploratory insights into AI-supported programming and pair-programming roles in secondary education.

Education SciencesVol. 16(11)
Shaanxi Normal University (CN)
Openalex Percentile: Top 10%
Teaching and Learning Programming
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.

Laika access coming soon