Volume 4, 2026 – Issue 3 
Effects of a Multimodal Artificial Intelligence Tutor on Conditional Statement Achievement and Engagement
Dimitrios Kravvaris
1
Independent Scholar, Ioannina, Greece
* Corresponding author: jkravv@gmail.com
DOI: 10.5281/zenodo.23583827
Abstract
Conditional statements are a well-documented stumbling block for novice programmers. Beginners tend to misread the flow of control rather than trace which branch a given condition actually selects, and that habit, left alone, tends to follow them into harder material. This study reports a between-groups experiment. We examined whether a multimodal artificial intelligence (AI) tutor, one that generates visual representations of conditional execution and offers adaptive help when a student answers incorrectly, improves learning outcomes and engagement relative to traditional classroom instruction. Forty-four students aged 11 to 12 were assigned to two intact classes of 22. The first group received a standard, teacher-led lesson on if and if-else statements, built around textbook explanations and worked examples on the board. The second covered the same material in pairs, using a multimodal AI tutor that supplied step-by-step flowcharts and execution traces whenever a pair answered incorrectly, following the driver-navigator pair programming technique. Learning was measured with a pre-test and post-test on predicting the output of conditional code; engagement was gauged through a short questionnaire and classroom observation. The tutor group scored significantly higher on the post-test and reported substantially greater interest and enjoyment. These findings suggest that multimodal AI tools, used to visualize conditional execution and to scaffold corrections after errors, can lift both achievement and motivation in introductory programming.
Keywords: multimodal artificial intelligence, conditional statements, programming education, student engagement, intelligent tutoring systems
Published
2026/10/31
—
Section
Research Papers
How to Cite (APA)
Download Citation: EndNote/Zotero/Mendeley (RIS)
References
Anderson, R. K., & Boyle, M. (2023). Generative AI tutors for primary mathematics: A systematic review. Computers and Education: Artificial Intelligence, 5, 100142–100142. https://doi.org/10.1016/j.caeai.2023.100142
Blaney, N. T., Stephan, C. W., Rosenfield, D., Aronson, E., & Sikes, J. (1977). Interdependence in the classroom: A field study. Journal of Educational Psychology, 69(2), 121–128. https://doi.org/10.1037/0022-0663.69.2.121
Chen, L., Wu, Y., & Park, S. (2022). Multimodal learning analytics in K-12 mathematics: Opportunities and risks. British Journal of Educational Technology, 53(6), 1601–1620. https://doi.org/10.1111/bjet.13210
Holmes, W., Bialik, M., & Fadel, C. (2023). Artificial intelligence in education (pp. 621–653). https://doi.org/10.58863/20.500.12424/4276068
Hopcan, S., Polat, E., & Albayrak, E. (2022). Collaborative Behavior Patterns of Students in Programming Instruction. Journal of Educational Computing Research, 60(4), 1035–1062. https://doi.org/10.1177/07356331211062260
Kravvaris, D., & Fotou, A. (2025). Responsible AI in the classroom: A pedagogical and ethical framework for developing educational chatbots with Gemini API. In Artificial Intelligence and Innovation in Education: Ethical and Technological Dimensions – AI Education 2025 Official Conference Proceedings (pp. 303–310). AI Education 2025. ISBN 978-618-5630-30-0.
Lee, G.-G., Shi, L., Latif, E., Gao, Y., Bewersdorff, A., Nyaaba, M., Guo, S., Wu, Z., Liu, Z., Wang, H., Mai, G., Liu, T., & Zhaı, X. (2023). Multimodality of AI for Education: Towards Artificial General Intelligence. In ArXiv.org. https://doi.org/10.48550/arxiv.2312.06037
Li, Y., Yang, R., Gui, S., Shi, P., Huang, X., Yang, D., Zhang, X. J., & Gai, Y. (2024). Visualizing program behavior: A study of enhanced program diagrams using LLM. In 2024 IEEE Frontiers in Education Conference (FIE) (pp. 1–5). IEEE. https://doi.org/10.1109/fie61694.2024.10893082
Liu, J., Sun, D., Sun, J., Wang, J., & Yu, P. L. H. (2025). Designing a generative AI enabled learning environment for mathematics word problem solving in primary schools: Learning performance, attitudes and interaction. Computers and Education Artificial Intelligence, 9, 100438–100438. https://doi.org/10.1016/j.caeai.2025.100438
Lodge, J. M., Kennedy, G., Lockyer, L., Arguel, A., & Pachman, M. (2018). Understanding Difficulties and Resulting Confusion in Learning: An Integrative Review. Frontiers in Education, 3. https://doi.org/10.3389/feduc.2018.00049
Ng, O.-L., & Chan, T. (2022). Multimodal mathematics learning with AI-generated representations: A design-based study. ZDM – Mathematics Education, 54(7), 1471–1487. https://doi.org/10.1007/s11858-022-01376-2
Ngadengon, Z., Subramaniam, T. S., Yasak, Z., Syukri, M., & Hazim, M. N. (2024). COMPUTATIONAL THINKING AND PAIR PROGRAMMING: A SYSTEMATIC REVIEW. International Journal of Modern Education, 6(20), 103–119. https://doi.org/10.35631/ijmoe.620008
Nia, H. S., & Yaghoobzadeh, A. (2018). Analysis of pretest-posttest studies with control group: Comparison of two types of effect sizes. DOAJ (DOAJ: Directory of Open Access Journals). https://doaj.org/article/598eda4b5e8a45ba9b3f3855b8a9af78
Ponggawa, V., Annas, M. N., Boediman, T. P. P., Abdullah, E. R., & Ramopolii, V. J. F. (2026). The Application of Flowcharts in Understanding Programming Logic for New Students. Cerdika Jurnal Ilmiah Indonesia, 6(3), 1053–1061. https://doi.org/10.59141/cerdika.v6i3.3395
Qu, A., Wen, Y., Zhang, J., Yunge, W., Zhao, Y., Alok, P., Salazar-Gómez, A. F., Liang, P. P., & Zhao, J. (2025). ClassMind: Scaling Classroom Observation and Instructional Feedback with Multimodal AI. In ArXiv.org. https://doi.org/10.48550/arxiv.2509.18020
Rau, M. A., Aleven, V., Rummel, N., & Pardos, Z. A. (2013). How Should Intelligent Tutoring Systems Sequence Multiple Graphical Representations of Fractions? A Multi-Methods Study. International Journal of Artificial Intelligence in Education, 24(2), 125–161. https://doi.org/10.1007/s40593-013-0011-7
Robertson, J., Gray, S., Toye, M., & Booth, J. N. (2020). The relationship between Executive Functions and Computational Thinking. International Journal of Computer Science Education in Schools, 3(4), 35–49. https://doi.org/10.21585/ijcses.v3i4.76
Urhahne, D., & Wijnia, L. (2023). Theories of Motivation in Education: an Integrative Framework. Educational Psychology Review, 35(2). https://doi.org/10.1007/s10648-023-09767-9
Xu, T., Zhang, Y., Chu, Z., & Wen, Q. (2025). Multimodal AI Teacher: Integrating Edge Computing and Reasoning Models for Enhanced Student Error Analysis. AI Magazine, 46(3). https://doi.org/10.1002/aaai.70030
Zhao, C. Q., Cao, J., & Koedinger, K. R. (2026). LLM-based Multimodal Feedback Produces Equivalent Learning and Better Student Perceptions than Educator Feedback. In arXiv (Cornell University). Cornell University. https://doi.org/10.48550/arxiv.2601.15280
About the authors
- Dimitrios Kravvaris holds a Ph.D. in Informatics from the Ionian University, Greece, where his research focused on the analysis of educational video lectures using social and linguistic metadata. He currently serves as Deputy Headmaster and Computer Science teacher at the 3rd Primary School of Ioannina. His research interests include educational data mining, social network analysis, STEM education, educational robotics, and AI in teaching. He serves as a reviewer for the Journal of the Knowledge Economy (Springer) and Engineering Applications of Artificial Intelligence (Elsevier).
jkravv@gmail.com
↩︎


