Understanding Student Perceptions, Mistakes, and Debugging Approaches when Solving Natural Language Programming Tasks

Victor-Alexandru Padurean, Kaitlin Riegel, Gweneth Barbre, Musa Blake, Paul Denny, Alkis Gotovos, Juho Leinonen, Stephen MacNeil, James Prather, Adish Singla

TL;DR

This paper investigates how introductory programming (CS1) students interact with dialogue-based AI coding assistants to solve "Prompt Problems"—tasks where students write natural language prompts rather than code. While students find prompting easier and more enjoyable than traditional coding, they frequently fall into the trap of "vibe coding," over-relying on the AI to infer critical details and systematically omitting essential specifications like function return types and argument names.

What Problem Does This Paper Address?

Generative AI tools like GitHub Copilot and ChatGPT are fundamentally changing software engineering, turning "prompt engineering" into a core competency. In response, computer science educators have introduced Prompt Problems to help novices practice communicating computational logic without getting bogged down by syntax errors.

However, prior research has mostly looked at "zero-shot" prompting, where a student must provide all details in a single shot. Real-world AI assistants rely on multi-turn dialogues. This paper addresses a critical gap: how do students handle dialogue-based natural language programming? Specifically, what mistakes do they make in their initial prompts, how do they perceive the difficulty compared to traditional coding, and how do they debug when the AI generates incorrect code?

Methods

The authors developed a web-based tool called Prompt Programming, backed by GPT-4o mini. Students are presented with a visual specification of a problem (input-output pairs) and must guide the AI to generate a correct C function entirely through natural language dialogue; they are not permitted to edit the code directly.

The study was deployed at the University of Auckland within a large CS1 course for engineering students ($N = 1,031$). Students solved six problems split into two batches:

  1. Batch 1 (Simpler): Basic array operations like counting negative numbers or finding the index of the last zero.
  2. Batch 2 (Complex): Advanced tasks requiring indexing precision and structural modifications, such as binary addition using arrays and matrix propagation.

The researchers collected quantitative interaction logs (messages, code executions, resets) and performed inductive thematic analysis on qualitative student reflections to evaluate perceptions and debugging strategies. They also manually coded 1,286 unsuccessful initial prompts to catalog common mistakes.

Example of a student interacting with the dialogue interface to solve a binary addition problem.

Datasets

The study evaluates an educational interaction dataset collected from over 900 participating students across six custom-designed array and matrix manipulation problems.

  • Newly introduced benchmarks: The paper outlines six visual programming tasks designed to test generic programming concepts without syntax overhead, categorized into single-integer outputs (Batch 1) and structured data modifications (Batch 2).

Key Insights and Ideas

  • The Cognitive Offloading Benefit: By removing syntax barriers, Prompt Problems successfully free up working memory. Students reported that the exercises allowed them to focus purely on high-level logic, problem-solving, and code comprehension.
  • The "Vibe Coding" Pitfall: Because students trust the AI to "fill in the gaps," they suffer from severe over-reliance. Novices consistently fail to realize that ambiguity in natural language leads to broken code, assuming the AI will magically infer exact variable names, types, and constraints.
  • A Shift in Debugging Paradigms: In traditional programming, debugging involves tracing code execution and analyzing test cases. In natural language programming, students rarely trace the generated code. Instead, they debug by re-clarifying their intent and re-reading the visual problem description, treating the AI as a misunderstood conversational partner rather than a deterministic compiler.
Themes from student reflections comparing prompt programming to traditional coding.

Key Results

  • High Engagement & Perceived Ease: Students overwhelmingly agreed that prompting was easier than writing code, yielding a mean score of 3.80 on a 5-point Likert scale.
  • Complexity Changes Behavior: For simple problems (Batch 1), success rates were near-perfect (~98-100%). However, for complex problems (Batch 2), success rates plummeted to as low as 44% for binary addition, requiring significantly more messages and iterations.
  • Prevalent Prompting Mistakes: The most frequent errors involved omitting structural details. Across Batch 1, up to 94.4% of incorrect initial prompts failed to specify the function's return type, and up to 89.5% omitted argument names.
  • Dominant Debugging Strategies: When the AI output was wrong, the most common student strategy was simply "clarifying intent or more thoroughly specifying details" (reported by over 90 students), whereas traditional code tracing was rarely utilized.
Strategies reported by students to refine prompts after an initial failure.

Limitations and Future Work

The authors note several limitations: the study was restricted to introductory C programming tasks, the problems were relatively simple, and there was no direct A/B testing comparing single-shot prompting against dialogue-based prompting. Additionally, demographic data was unavailable due to ethics constraints.

Future Directions: To combat problematic cognitive offloading and "vibe coding," the authors suggest exploring structured scaffolding. This includes Parsons-style prompt puzzles (where students assemble prompts from predefined valid/extraneous fragments), structured prompt templates, or an AI middleware layer that checks prompts for completeness (e.g., verifying if types and inputs are declared) before generating code.

Summary updated

BibTeX
@inproceedings{padurean2026understanding,
  author = {Victor-Alexandru Padurean and Kaitlin Riegel and Gweneth Barbre and Musa Blake and Paul Denny and Alkis Gotovos and Juho Leinonen and Stephen MacNeil and James Prather and Adish Singla},
  title = {{Understanding Student Perceptions, Mistakes, and Debugging Approaches when Solving Natural Language Programming Tasks}},
  booktitle = {ICER},
  year = {2026},
  doi = {10.1145/3765964.3811639},
}
Figure