In a randomized trial, brief classroom guidance improved learning-focused prompts in an introductory programming course, without changing final exam results.
Researchers randomly assigned first-year students in an introductory programming course to one of four instructional approaches, ranging from a two-sentence reminder to a multi-step activity. Among the 431 students who completed all four study phases, every approach improved students’ ability to create prompts aimed at learning rather than simply obtaining answers.
The size of the prompting gains increased with the intended level of engagement, ranging from 8 to 51 percentage points, and the gains persisted until the end of the semester. Students also reported continued voluntary use of AI and greater confidence, but final examination scores did not differ between the groups.
What the lesson changed
All four instructional approaches improved learning-oriented prompting, including the briefest two-sentence reminder. The gains persisted six weeks later and ranged from 8 to 51 percentage points depending on the designed engagement level of the activity.
Students in every group reported that they continued to use AI voluntarily, and their confidence in prompting increased alongside their prompting skills. However, final exam performance did not differ between the instructional conditions. The results therefore identify a gap between learning how to write better prompts and achieving better academic results.
Why the result matters
Universities may tell students to use AI for learning rather than for ready-made solutions, but those policies do not by themselves specify what students should do. This study offers instructors several classroom options for teaching learning-focused prompting, including a very brief intervention.
At the same time, the unchanged exam results show that better prompting did not automatically translate into higher academic performance in this course. The study therefore helps define both what this kind of instruction can change and where its effects may stop.
Evidence and caveats
The study was a randomized controlled trial involving first-year students in one introductory computer science course at the University of Toronto Mississauga. Of 1,024 enrolled students assigned to the four conditions, 431 completed the pre-test, intervention, immediate post-test and delayed post-test. The delayed test was completed without AI access six weeks after the instruction.
The prompting measure was based on the same framework used to design the instruction, so it assessed adoption of that framework rather than a completely independent measure of prompting ability. The tests measured what students could write when asked, not necessarily how they used AI during everyday coursework. Continued use was self-reported, and the confidence measure may have been affected by students’ recollection of their earlier confidence. The study also took place in a single course and institution; the four conditions differed in both content and duration, and the study was not designed to establish whether effects were equal across student groups.