Search and Filter

"Give me the code" - Log Analysis of First-Year CS Students' Interactions With GPT

Date

AI Overview

Why it matters

Over-reliance on generative AI tools can hinder first-year students' foundational programming skills, especially when students interact with chatbots without prompt training or direct teacher oversight.

Study at a glance
  • Question: Can first-year computer science students successfully use and incorporate ChatGPT-generated code into course projects without prompt training?
  • Setting and data: Lusófona University, Portugal; 69 first-year computer science undergraduates across 37 project groups; 2022/23 academic year; 52 post-exercise survey responses.
  • Method: Mixed methods analysis of student-submitted interaction logs and project code, alongside a post-exercise survey.
  • AI tools: ChatGPT, GPT-3.5, GPT-4
Key findings
  • Most students successfully incorporated ChatGPT solutions into their projects, with 72.2% using the suggested code either fully or partially.
  • Nearly half of student groups (47.2%) selected a specific AI solution, evaluating options based on simplicity, flexibility, or ease of understanding.
  • Students typically used unsophisticated prompts without context or examples, and 38.9% failed to ask for an alternative solution as instructed.

Summary drafted with AI from the full paper and may contain errors. See the full paper for details.

The impact of Large Language Models (LLMs) like GPT-3, GPT-4, and Bard in computer science (CS) education is expected to be profound. Students now have the power to generate code solutions for a wide array of programming assignments. For first-year students, this may be particularly problematic since the foundational skills are still in development and an over-reliance on generative AI tools can hinder their ability to grasp essential programming concepts. This paper analyzes the prompts used by 69 freshmen undergraduate students to solve a certain programming problem within a project assignment, without giving them prior prompt training. We also present the rules of the exercise that motivated the prompts, designed to foster critical thinking skills during the interaction. Despite using unsophisticated prompting techniques, our findings suggest that the majority of students successfully leveraged GPT, incorporating the suggested solutions into their projects. Additionally, half of the students demonstrated the ability to exercise judgment in selecting from multiple GPT-generated solutions, showcasing the development of their critical thinking skills in evaluating AI-generated code.

Publication Source

Publisher
arXiv