When Generative AI Meets Socratic Method: Investigating Programming Learning Dynamics Through Behaviours, Interaction Qualities and Perceptions
The DOI matches its Crossref record; 15 of the 15 references it cites were found in a registry or an index.
Abstract
Background: The integration of generative artificial intelligence (GAI) tools like GPT into programming education offers transformative potential through personalised guidance and instant feedback, yet risks fostering overreliance and superficial learning due to their tendency to deliver direct, context‐free answers. Objectives: This quasi‐experimental study addresses this gap by proposing a Socratic questioning framework to optimise GAI‐facilitated programming instruction, emphasising critical thinking over passive solution retrieval. Methods: We compared two pedagogical approaches: GAI‐Scaffolded Learning (GSL), where GPT employs structured Socratic dialogue to guide problem‐solving and GAI‐Direct Learning (GDL), which provides immediate answers without guided inquiry. This research collected learners' programming behaviours, interactions data with GPT from screen recordings and platform log data and perceptions data. This research further utilised multiple learning analytics approaches (i.e., click stream analysis, lag‐sequential analysis, epistemic network analysis [ENA] and statistics) to compare learners' programming behaviours, interaction patterns and perceptions under two approaches. Results and Conclusions: Through an analysis of 80 college students' programming behaviours, interaction qualities and perceptions, we found some intriguing results. First, GSL engaged in cyclical, reflective practices (debugging, Socratic questioning, console use), while GDL prioritised rapid fixes via trial‐and‐error with GPT code, risking superficial mimicry and over‐reliance on external resources. Second, ENA highlighted GSL's deeper engagement through interconnected feedback, emotional support and iterative inquiry, reducing frustration and sustaining persistence and GDL interactions focused on surface‐level queries, lacking scaffolding for emotional/heuristic integration. Third, GSL maintained positive attitudes due to structured prompts aligning expectations and easing cognitive load. GDL attitudes declined from mismatched expectations and frustration. Implications: Based on these findings, the study proposes pedagogical and developmental implications for future design and development of AI‐augmented curricula, providing actionable insights for educators seeking to harness GAI's potential while nurturing critical thinking in programming education.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Perceived usefulness, perceived ease of use, and user acceptance of information technology
Davis, F. D. (1989) · MIS Quarterly · doi:10.2307/249008 · Cited by 68,483
Kirschner, P. A., Sweller, J., & Clark, R. E. (2006) · Educational Psychologist · doi:10.1207/s15326985ep4102_1 · Cited by 7,776
Cognitive load theory, learning difficulty, and instructional design
Sweller, J. (1994) · Learning and Instruction · doi:10.1016/0959-4752(94)90003-5 · Cited by 5,426
ChatGPT for Language Teaching and Learning
Kohnke, L., Moorhouse, B. L., & Zou, D. (2023) · RELC Journal · doi:10.1177/00336882231162868 · Cited by 1,371
Examining Science Education in ChatGPT: An Exploratory Study of Generative Artificial Intelligence
Cooper, G. (2023) · Journal of Science Education and Technology · doi:10.1007/s10956-023-10039-y · Cited by 1,263
Shaffer, D. W., Collier, W., & Ruis, A. R. (2016) · Journal of Learning Analytics · doi:10.18608/jla.2016.33.3 · Cited by 811
Yilmaz, R., & Karaoglan Yilmaz, F. G. (2023) · Computers and Education: Artificial Intelligence · doi:10.1016/j.caeai.2023.100147 · Cited by 745
Jeon, J., & Lee, S. (2023) · Education and Information Technologies · doi:10.1007/s10639-023-11834-1 · Cited by 696
Mousavinasab, E., Zarifsanaiey, N., R. Niakan Kalhori, S., Rakhshan, M., Keikha, L., & Ghazi Saeedi, M. (2021) · Interactive Learning Environments · doi:10.1080/10494820.2018.1558257 · Cited by 605
Use chat gpt to solve programming bugs
Surameery, N. M. S., & Shakor, M. Y. (2023) · International Journal of Information technology and Computer Engineering · doi:10.55529/ijitc.31.17.22 · Cited by 382
Research works printed but not linked: 40
- Amos J. P., 2025, A Bibliometric Exposition and Review on Leveraging LLMs for Programming Education
- 10.1080/0144929X.2022.2083981 · DOI
- Avila‐Chauvet L. D.Mejía andC. O.Acosta Quiroz.2023.“ChatGpt as a Support Tool for Online Behavioral Task Programming.”Accessed February 10 2025.https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4329020.
- 10.58496/MJCSC/2023/002 · DOI · Paper page
- Chang E. Y.2024.“SocraSynth: Multi‐LLM Reasoning With Conditional Statistics.”Preprint arXiv January 19.https://doi.org/10.48550/arXiv.2402.06634. · DOI
- 10.1111/nup.12240 · doi:10.1111/nup.12240
- 10.1016/j.ijinfomgt.2023.102642 · DOI · Paper page
- Eason C., 2023, GPTutor: A ChatGPT‐Powered Programming Tool for Code Explanation
- 10.3389/feduc.2025.1506752 · DOI
- 10.1037/0033‐2909.101.2.312 · DOI
- 10.1016/j.future.2018.10.057 · DOI
- 10.1371/journal.pone.0173584 · DOI
- He H. H.Zhang andD.Roth.2024.“Socreval: Large Language Models With the Socratic Method for Reference‐Free Reasoning Evaluation.”Preprint arXiv December 17.https://doi.org/10.48550/arXiv.2310.00074. · DOI
- 10.5840/thinking19888134 · doi:10.5840/thinking19888134
- 10.1615/JMachLearnModelComput.2023048492 · DOI · Paper page
- 10.3352/jeehp.2023.20.38 · DOI · Paper page
- 10.3233/FAIA240195 · DOI · Paper page
- 10.1504/ijmlo.2024.141836 · DOI · Paper page
- 10.4304/jltr.5.6.1236‐1244 · DOI
- 10.1080/02188791.2021.1985430 · DOI
- 10.18608/jla.2025.8575 · DOI
- Ma T. R.Chen A. T.Li andH.Liu.2024.“Socratic ChatGPT: Theory Design and Empirical Evaluations.”PACIS 2024 Proceedings. 12.https://aisel.aisnet.org/pacis2024/track14_educ/track14_educ/12.
- 10.30605/onoma.v9i1.2221 · doi:10.30605/onoma.v9i1.2221
- 10.1007/978-3-031-40286-9_7 · DOI
- Nelson L., 1949, Socratic Method and Critical Philosophy
- 10.1080/20004508.2019.1627844 · DOI · Paper page
- 10.1145/3587102.3588794 · DOI · Paper page
- Paul R., 2016, The Thinker's Guide to Socratic Questioning, 31
- Qi C., 2024, [Workshop presentation] The 28th Global Chinese Conference on Computers in Education
- 10.1057/s41599‐024‐03991‐6 · DOI
- 10.1186/s41239‐024‐00446‐5 · DOI · Paper page
- 10.1007/s10639-022-10891-2 · DOI
- Tian H. W.Lu T. O.Li et al.2023.“Is ChatGPT the Ultimate Programming Assistant—How Far Is It?”Cornell University Library. arXiv.org.
- 10.1080/10494820.2023.2286370 · DOI
- 10.26803/ijlter.22.7.7 · DOI · Paper page
- Vukojičić M., 2023, ChatGPT in Programming Education: ChatGPT as a Programming Assistant, InspirED Teachers' Voice, 1, 7
- Vygotsky L. S., 1978, Mind in Society: The Development of Higher Psychological Processes
- 10.1111/bjet.12758 · DOI · Paper page
- Zare P., 2015, The Use of Socratic Method as a Teaching/Learning Tool to Develop Students' Critical Thinking: A Review of Literature, Language in India, 15, 256
- 10.1145/3728894 · DOI
Cited by
Generative AI, Cognitive Offloading, and Learner Agency in Higher Education: A Scoping Review
Wang, G., Wang, W., Yang, D., & Ren, J. (2026) · Behavioral Sciences · doi:10.3390/bs16071150 · Cited by 20
Metadata
- Authors
- Sun, D., Zheng, Y., Xu, J., & Yang, Z.
- Venue
- Journal of Computer Assisted Learning
- Publisher
- Wiley
- Published
- 2026-02-17
- Volume
- 42
- Issue
- 2
- ISSN
- 0266-4909
- 1365-2729
- Cited by
- 12
- References
- 15
- Language
- en
- Licence
- onlinelibrary.wiley.com/termsAndConditions#vor (vor)
- doi.wiley.com/10.1002/tdm_license_1.1 (tdm)
- Funders
- National Natural Science Foundation of China (62307011)
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.