CoChat

When Generative AI Meets Socratic Method: Investigating Programming Learning Dynamics Through Behaviours, Interaction Qualities and Perceptions

Sun, Dan, Zheng, Yi, Xu, Jie, Yang, Zhanshan · 2026 · Journal of Computer Assisted Learning
Cited by 12

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.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.1002/jcal.70210

Cites

15 of 15 references verified0 citation errors · 0 not checkable

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.

A few free checks a day · papers already verified open instantly · results are public

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

Show all 15 references

Research works printed but not linked: 40

  1. Amos J. P., 2025, A Bibliometric Exposition and Review on Leveraging LLMs for Programming Education
  2. 10.1080/0144929X.2022.2083981 · DOI
  3. 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.
  4. 10.58496/MJCSC/2023/002 · DOI · Paper page
  5. Chang E. Y.2024.“SocraSynth: Multi‐LLM Reasoning With Conditional Statistics.”Preprint arXiv January 19.https://doi.org/10.48550/arXiv.2402.06634. · DOI
  6. 10.1111/nup.12240 · doi:10.1111/nup.12240
  7. 10.1016/j.ijinfomgt.2023.102642 · DOI · Paper page
  8. Eason C., 2023, GPTutor: A ChatGPT‐Powered Programming Tool for Code Explanation
  9. 10.3389/feduc.2025.1506752 · DOI
  10. 10.1037/0033‐2909.101.2.312 · DOI
  11. 10.1016/j.future.2018.10.057 · DOI
  12. 10.1371/journal.pone.0173584 · DOI
  13. 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
  14. 10.5840/thinking19888134 · doi:10.5840/thinking19888134
  15. 10.1615/JMachLearnModelComput.2023048492 · DOI · Paper page
  16. 10.3352/jeehp.2023.20.38 · DOI · Paper page
  17. 10.3233/FAIA240195 · DOI · Paper page
  18. 10.1504/ijmlo.2024.141836 · DOI · Paper page
  19. 10.4304/jltr.5.6.1236‐1244 · DOI
  20. 10.1080/02188791.2021.1985430 · DOI
  21. 10.18608/jla.2025.8575 · DOI
  22. 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.
  23. 10.30605/onoma.v9i1.2221 · doi:10.30605/onoma.v9i1.2221
  24. 10.1007/978-3-031-40286-9_7 · DOI
  25. Nelson L., 1949, Socratic Method and Critical Philosophy
  26. 10.1080/20004508.2019.1627844 · DOI · Paper page
  27. 10.1145/3587102.3588794 · DOI · Paper page
  28. Paul R., 2016, The Thinker's Guide to Socratic Questioning, 31
  29. Qi C., 2024, [Workshop presentation] The 28th Global Chinese Conference on Computers in Education
  30. 10.1057/s41599‐024‐03991‐6 · DOI
  31. 10.1186/s41239‐024‐00446‐5 · DOI · Paper page
  32. 10.1007/s10639-022-10891-2 · DOI
  33. 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.
  34. 10.1080/10494820.2023.2286370 · DOI
  35. 10.26803/ijlter.22.7.7 · DOI · Paper page
  36. Vukojičić M., 2023, ChatGPT in Programming Education: ChatGPT as a Programming Assistant, InspirED Teachers' Voice, 1, 7
  37. Vygotsky L. S., 1978, Mind in Society: The Development of Higher Psychological Processes
  38. 10.1111/bjet.12758 · DOI · Paper page
  39. 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
  40. 10.1145/3728894 · DOI

Cited by

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
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.