Back to results

Virginia Tech

Designing Answer-Aware LLM Hints to Scaffold Deeper Learning in K–12 Programming Education

Abstract

dc:description.abstract

Studies have shown that many K–12 students develop misconceptions about programming concepts such as variables, conditionals, and loops, particularly when learning through block-based environments like Scratch, where visual abstractions can obscure underlying computational logic. While tools powered by artificial intelligence (AI) can provide quick help, they often give direct answers that reduce students' opportunities to think and learn. This work explores how AI can support learning without encouraging overreliance. In a study with 105 students using CodeKids, 31.4% showed misconceptions about variable assignment and data types, and only 20% correctly solved conditional problems, highlighting the need for better scaffolding to address these conceptual gaps. To tackle this challenge, we designed and implemented an LLM-powered hint generation system within CodeKids, an open-source, curriculum-aligned learning platform developed by Virginia Tech in collaboration with local schools. The system generates short, step-by-step hints when students ask for help, encouraging reasoning rather than direct answer-seeking. Grounded in Vygotsky's Zone of Proximal Development, this approach balances guidance and autonomy through structured prompting that preserves productive struggle. The system was tested with real students and evaluated through automated analysis and surveys, which showed that the hints were clear, helpful, and easy to use. Students who used the hints reported higher confidence and improved problem-solving skills. These results demonstrate promising progress in using AI to support K–12 programming education and lay the foundation for future tools that personalize hints, adapt to different learners, and make AI-driven learning more effective and engaging.

Degree

thesis:*
Name thesis:degree_name
Master of Science
Level thesis:degree_level
masters
Discipline thesis:degree_discipline
Computer Science & Applications
Department dc:contributor.department
Computer Science and#38; Applications
Grantor dc:publisher
Virginia Tech
Year dc:date.issued
2025

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Bhaskar, Sahana
Chair dc:contributor.committeechair
  • Hamouda, Sally
Committee members dc:contributor.committeemember
  • Eldardiry, Hoda Mohamed
  • Tilevich, Eli

Subjects

dc:subject × 5

Rights

dc:rights
Statement dc:rights
  • In Copyright
Language dc:language.iso
en

Identifiers

dc:identifier.*
Dc Identifier Other
vt_gsexam:45375
OAI identifier oai:identifier
oai:vtechworks.lib.vt.edu:10919/140565

Chain of custody

source
Harvested from
Virginia Tech
Base URL
vtechworks.lib.vt.edu/oai/request
Last updated
2026-07-22
Source record
OAI-PMH GetRecord
citation

Bhaskar, Sahana. Designing Answer-Aware LLM Hints to Scaffold Deeper Learning in K–12 Programming Education. masters thesis, Virginia Tech, 2025. https://hdl.handle.net/10919/140565