Objective
Learning to program is hard. Students often struggle to plan an algorithm (a step-by-step recipe for solving a problem), to fix coding errors, and to get feedback quickly. Generative AI chatbots can explain code and suggest fixes, but earlier work cited by the authors suggests that the help varies with a student's skill, and that leaning too hard on a chatbot may weaken problem-solving.
This study looked at computational thinking (CT), a set of thinking skills used to solve problems with the help of computers. The authors measured five parts of it: creativity, problem-solving, algorithmic thinking, critical thinking, and cooperativity. They also looked at human-computer interaction (HCI), meaning how students talk with the chatbot.
The researchers built a generative progressive prompt sheet. It gives students ready-made starter questions for a chatbot at four stages of a programming task. They asked three questions:
- How does students' computational thinking develop during prompt-assisted programming?
- What do students' conversations with the chatbot look like?
- How do those conversations differ between students with lower and higher computational thinking?
Methods
This was a single-group study with a before-and-after measure. All students used the same method, so there was no comparison group. That kind of design can show whether scores changed, but it cannot show that the method caused the change.
The authors recruited 44 undergraduates by convenience sampling (whoever was easy to reach). They were 18 to 19 years old, majored in Educational Technology at a research university in China, and half were male. None had taken a course on computational thinking. All gave consent.
Students worked in an online Python editor next to Kimi, a chatbot. They used the prompt sheet to build a text-based adventure game called "Lost Treasure." The sheet had two parts. General prompts asked the student to state the context, give the chatbot a role, and say what kind of output they wanted. Advanced prompts matched four stages: situation exploration, program generation, model optimization, and knowledge internalization. Each stage lasted about 15 minutes.
The whole session ran about 130 minutes. A teaching assistant first spent 30 minutes explaining the chatbot and its limits. Students then filled in a 29-item computational thinking scale (20 minutes), did the 60-minute task, and filled in the scale again (20 minutes). Scores ran from 1 to 5.
Screen recordings (2,160 minutes in total) were coded by two people into 1,726 behaviors linked to the five thinking skills. The chat logs were coded into 2,068 units, such as the kind of question asked and how the student reacted. Agreement between coders was 0.80 and 0.83. The authors used paired t-tests (a before-and-after comparison), lag sequential analysis (which finds common sequences of actions), and K-means clustering (which groups similar students). They split students into a higher and a lower half by their scores.
Key Findings
Students' self-rated computational thinking was higher after the session, their screen recordings showed more thinking behaviors in later stages, and their chat habits fell into four patterns.
Self-rated scores
- The overall score went from 3.40 before to 3.90 after (t = 11.81, p < 0.001, effect size d = 0.81).
- Creativity went from 3.61 to 4.18 (d = 1.40), the largest change. The authors call this a large effect.
- Problem-solving went from 3.32 to 3.73 (d = 0.72), algorithmic thinking from 2.89 to 3.52 (d = 0.71), critical thinking from 3.45 to 3.93 (d = 0.71), and cooperativity from 3.75 to 4.11 (d = 0.64). The authors call these medium effects.
Behavior during the task
- Thinking behaviors became more frequent from one stage to the next. Creativity peaked in the first stage, problem-solving and cooperativity in the second, algorithmic thinking in the third, and critical thinking in the fourth.
- The biggest jump was between the second and third stages, driven mainly by algorithmic thinking. The change from the third to the fourth stage was small and not statistically significant.
How students talked with the chatbot
- Most questions were low-demand ones, such as asking what the parameters of a function are. Closed low-demand questions averaged 6.09 per student and open low-demand questions 6.32. High-demand questions were rare (1.14 open, 0.75 closed).
- The chatbot mostly explained programming concepts (average 9.80 per student).
- Students mostly accepted the chatbot's answers (average 13.77 per student). Raising objections (0.98), criticizing and summarizing (0.84), and asking for explanations (0.75) were rare.
Four chat patterns
Clustering found four groups. Two were mostly students with lower computational thinking: a guided pattern (13 students) that asked short closed questions and accepted the answers, and an exploratory pattern (9 students) that asked what was wrong with the code and followed up. Two were mostly students with higher computational thinking: a debating pattern (10 students) that pushed back on the chatbot's advice, and a summarizing pattern (12 students) that asked deeper questions, reflected on their own habits, and critiqued and summed up the answers.
Implications
The authors recommend using prompt sheets that tie each stage of a programming task to a thinking skill, and tailoring support to how students talk with the chatbot.
Teachers
- The authors suggest giving students with lower computational thinking prompt sheets that include follow-up questions, so they move past quick answers. An example from the paper is asking the chatbot to compare which of two viewpoints better meets the task.
- For students with higher computational thinking, the authors suggest building self-regulation skills: reflecting, analyzing, and summarizing, and exploring the logic behind problems.
Schools and universities
- The authors note that ethical issues, such as algorithmic bias and data security, need attention throughout, and suggest policy coordination and supervision to limit privacy and compliance risks.
Researchers and developers
- The authors propose a basic structure for student-chatbot conversation: student question, chatbot response, then student feedback or follow-up.
Our reading (not the authors' recommendation):
- Since most students simply accepted the chatbot's answers, a teacher might add a step where students must check or challenge one answer before moving on.
- Instructors could read chat logs, with student permission, to spot who is stuck in short closed questions and offer them a follow-up question to try.
- Because the study had no comparison group, schools should treat this as a promising idea to try on a small scale, not as proof that a prompt sheet works better than other support.
Limitations
The authors name three limits. The sample was small and came from one discipline. The study was short, so long-term effects are unknown. And different chatbots, such as Copilot, Gemini, or Deepseek, may give different results.
The paper does not mention, but the main weakness is the design. All 44 students used the prompt sheet and there was no group without it. Scores rising from before to after cannot be credited to the sheet alone, because the session also included a 30-minute introduction to the chatbot and practice on a programming task.
The paper does not mention, but the main outcome was a self-rating scale. Students may rate themselves higher after finishing a task they enjoyed. The scale was filled in twice within about two hours, so some students may have remembered or been influenced by their first answers.
The paper does not mention, but the higher and lower groups were made by splitting students at the middle score, so students near the dividing line could be placed in either group. Each cluster held only 9 to 13 students, so the patterns are tentative.
The ethics statement also mentions participants' parents, although the students were adults aged 18 to 19, which is unclear.
Future Directions
The authors say future studies should recruit larger and more varied groups of students, beyond a single discipline. They also point to the short study length and say longer use could show deeper learning and lasting effects on problem-solving, critical thinking, and engagement.
They want to test whether other chatbots produce different results and to keep refining the prompt sheet while reducing "human" factors (how students ask) and "machine" factors (how the chatbot answers).
Questions the study leaves open:
- Would a comparison group working without the prompt sheet show the same rise in scores?
- Do follow-up question templates move students from the guided and exploratory patterns toward the debating and summarizing ones?
- Do the behavior changes seen in screen recordings match what students can do later without the chatbot?
The bottom line: In this small study of 44 Chinese undergraduates, students rated their computational thinking higher after a 60-minute Python task guided by a four-stage prompt sheet, and their chat logs showed four distinct ways of working with the chatbot. Most students accepted the chatbot's answers without much challenge. The study had no comparison group and relied on self-ratings, so it cannot show that the sheet caused the rise. Teachers could try similar sheets with follow-up questions on a small scale, and watch whether students question the chatbot or just accept its answers.
Comments 0
No comments yet. Be the first to share a thought.
Get new research summaries by email
Every new summary each morning, a weekly digest, or a monthly report. You choose, and you can unsubscribe in one click.