Let’s Code with GenAI: Exploring K-12 Teachers’ Self-Efficacy, Value Beliefs, and Coding Performance
Open Access
Abstract
While computational thinking (CT) is increasingly vital in K-12 education, teaching it through text-based coding remains challenging for teachers. To address this gap, this study presents and evaluates a self-paced professional development (PD) module, “Let’s Code with GenAI,” created for K-12 teachers to enhance text-based coding and CT. Using a one-group pretest-posttest design, 34 pre-/in-service teachers completed the module in 2025, engaging with instructional videos and hands-on coding activities using Micro:bit and MakeCode (v11.3.22), with a GenAI assistant providing explanations and debugging support. Pre- and post-intervention data were collected using the Teacher Beliefs about Coding and Computational Thinking (TBaCCT) scale and a coding/CT assessment. Posttest scores were higher than pretest scores on teaching efficacy and value beliefs (p < 0.001 for both), as well as in coding self-efficacy (p < 0.001) and CT self-efficacy (p = 0.015). Coding/CT assessment scores were also higher at posttest (p = 0.040). No statistically significant correlations were found between self-efficacy and performance measures. Overall, the findings offer preliminary insights into participants’ post-intervention outcomes in a GenAI-supported, self-paced PD module, including self-efficacy, value beliefs, and coding/CT performance, while underscoring the need for future controlled studies.Keywords
This publication has 59 references indexed in Scilit:
- From Programming to Prompting: Developing Computational Thinking through Large Language Model-Based Generative Artificial IntelligenceTechTrends, 2025
- A systematic review of AI education in K-12 classrooms from 2018 to 2023: Topics, strategies, and learning outcomesComputers and Education: Artificial Intelligence, 2024
- The effect of generative artificial intelligence (AI)-based tool use on students' computational thinking skills, programming self-efficacy and motivationComputers and Education: Artificial Intelligence, 2023
- Computational Thinking in Education: Past and PresentTechTrends, 2022
- A Comparison of Plugged and Unplugged Tools in Teaching Algorithms at the K-12 Level for Computational Thinking SkillsTechnology, Knowledge and Learning, 2022
- Computational thinking in compulsory education: a survey study on initiatives and conceptionsEducational Technology Research and Development, 2019
- Unplugged Approaches to Computational Thinking: a Historical PerspectiveTechTrends, 2019
- Computational What? Relating Computational Thinking to TeachingTechTrends, 2018
- Computing in the curriculum: Challenges and strategies from a teacher’s perspectiveEducation and Information Technologies, 2016
- Computational thinking in compulsory education: Towards an agenda for research and practiceEducation and Information Technologies, 2015