A Comparative Study of Large Language Models in Programming Education: Accuracy, Efficiency, and Feedback in Student Assignment Grading
Source abstract
Abstract
Programming education traditionally requires extensive manual assessment of student assignments, which is both time-consuming and resource-intensive for instructors. Recent advances in large language models (LLMs) open opportunities for automating this process and providing timely feedback. This paper investigates the application of artificial intelligence (AI) tools for preliminary assessment of undergraduate programming assignments. A multi-phase experimental study was conducted across three computer science courses: Introduction to Programming, Programming 2, and Advanced Programming Concepts. A total of 315 Python assignments were collected from the Moodle learning management system, with 100 randomly selected submissions analyzed in detail. AI evaluation was performed using ChatGPT-4 (GPT-4-turbo), Claude 3, and Gemini 1.5 Pro models, employing structured prompts aligned with a predefined rubric that assessed functionality, code structure, documentation, and efficiency. Quantitative results demonstrate high correlation between AI-generated scores and instructor evaluations, with ChatGPT-4 achieving the highest consistency (Pearson coefficient 0.91) and the lowest average absolute deviation (0.68 points). Qualitative analysis highlights AI’s ability to provide structured, actionable feedback, though variability across models was observed. The study identifies benefits such as faster evaluation and enhanced feedback quality, alongside challenges including model limitations, potential biases, and the need for human oversight. Recommendations emphasize hybrid evaluation approaches combining AI automation with instructor supervision, ethical guidelines, and integration of AI tools into learning management systems. The findings indicate that AI-assisted grading can improve efficiency and pedagogical outcomes while maintaining academic integrity.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Online Learning and Analytics · Teaching and Learning Programming · Higher Education Learning Practices
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Department of Multimedia, University North, 42000 Varaždin, Croatia
Faculty of Organization and Informatics, University of Zagreb, 42000 Varaždin, Croatia
Inpro d.o.o., Department for Systems Implementation, 40000 Čakovec, Croatia
References (20)
Show source-provided references
1. Impey, C., Wenger, M., Garuda, N., Golchin, S., and Stamer, S. (2025). Using Large Language Models for Automated Grading of Student Writing about Science. Int. J. Artif. Intell. Educ., 1–35. Available online: https://link.springer.com/article/10.1007/s40593-024-00453-7.10.1007/s40593-024-00453-7 ↗
2. Generative AI vs. instructor vs. peer assessments: A comparison of grading and feedback in higher education10.1080/02602938.2025.2487495 ↗
3. Grévisse, C. (2024). LLM-based automatic short answer grading in undergraduate medical education. BMC Med. Educ., 24, Available online: https://bmcmededuc.biomedcentral.com/articles/10.1186/s12909-024-06026-5.10.1186/s12909-024-06026-5 ↗
4. Quah, B., Zheng, L., Sng, T.J.H., Yong, C.W., and Islam, I. (2024). Reliability of ChatGPT in automated essay scoring for dental undergraduate examinations. BMC Med. Educ., 24, Available online: https://link.springer.com/article/10.1186/s12909-024-05881-6.10.1186/s12909-024-05881-6 ↗
5. Lundgren, M. (2024). Large Language Models in Student Assessment: Comparing ChatGPT and Human Graders. arXiv.10.2139/ssrn.4874359 ↗
6. Mok, R., Akhtar, F., Clare, L., Li, C., Ida, J., Ross, L., and Campanelli, M. (2024). Using AI Large Language Models for Grading in Education: A Hands-On Test for Physics. arXiv.10.1088/1361-6552/adb92b ↗
7. Xiao, C., Ma, W., Song, Q., Xu, S.X., Zhang, K., Wang, Y., and Fu, Q. (2025, January 3–7). Human-ai collaborative essay scoring: A dual-process framework with llms. Proceedings of the 15th International Learning Analytics and Knowledge Conference, Dublin, Ireland.10.1145/3706468.3706507 ↗
8. Tseng, E.Q., Huang, P.C., Hsu, C., Wu, P.Y., Ku, C.T., and Kang, Y. (2024, January 15–18). CodEv: An Automated Grading Framework Leveraging Large Language Models for Consistent and Constructive Feedback. Proceedings of the 2024 IEEE International Conference on Big Data (BigData), Washington, DC, USA. Available online: https://arxiv.org/abs/2501.10421.10.1109/BigData62323.2024.10825949 ↗
9. Mehta, A., Gupta, N., Balachandran, A., Kumar, D., and Jalote, P. (2023). Can chatgpt play the role of a teaching assistant in an introductory programming course?. arXiv, Available online: https://arxiv.org/abs/2312.07343.
10. The future of grading programming assignments in education: The role of ChatGPT in automating the assessment and feedback process10.1016/j.tsc.2024.101522 ↗
11. Aytutuldu, I., Yol, O., and Akgul, Y.S. (2025). Integrating LLMs for Grading and Appeal Resolution in Computer Science Education. arXiv.
12. Mangalur, A., Hegde, K., Badachi, C., and Aamir, M. (2025). Transforming Student Evaluation with Adaptive Intelligence and Performance Analytics. arXiv, Available online: https://arxiv.org/abs/2503.04752.
13. AI-generated feedback on writing: Insights into efficacy and ENL student preference10.1186/s41239-023-00425-2 ↗
14. Feedback sources in essay writing: Peer-generated or AI-generated feedback?10.1186/s41239-024-00455-4 ↗
15. Time to revisit existing student’s performance evaluation approach in higher education sector in a new era of ChatGPT—A case study10.1080/2331186X.2023.2210461 ↗
16. Faculty members’ use of artificial intelligence to grade student papers: A case of implications10.1007/s40979-023-00130-7 ↗
17. Ilieva, G., Yankova, T., Ruseva, M., and Kabaivanov, S. (2025). A Framework for Generative AI-Driven Assessment in Higher Education. Information, 16.10.20944/preprints202505.0800.v1 ↗
18. Implementation of assessment and feedback in higher education10.53623/apga.v2i1.170 ↗
19. Smolansky, A., Cram, A., Raduescu, C., Zeivots, S., Huber, E., and Kizilcec, R.F. (2023, January 20–22). Educator and student perspectives on the impact of generative AI on assessments in higher education. Proceedings of the Tenth ACM Conference on Learning@ Scale, Copenhagen, Denmark.10.1145/3573051.3596191 ↗
20. Čep, A., and Bernik, A. (2024, January 26–27). ChatGPT and Artificial Intelligence in Higher Education: Literature Review Powered by Artificial Intelligence. Proceedings of the Science and Information Conference, London, UK.10.1007/978-3-031-62269-4_17 ↗