The rise of Generative AI (GenAI) tools like ChatGPT has created new opportunities and challenges for computing education. Existing research has primarily focused on GenAI's ability to complete educational tasks and its impact on student performance, often overlooking its effects on knowledge gains. In this study, we investigate how GenAI assistance compares to conventional online resources in supporting knowledge gains across different proficiency levels. We conducted a controlled user experiment with 24 undergraduate students of two different levels of programming experience (beginner, intermediate) to examine how students interact with ChatGPT while solving programming tasks. We analyzed task performance, conceptual understanding, and interaction behaviors. Our findings reveal that generating complete solutions with GenAI significantly improves task performance, especially for beginners, but does not consistently result in knowledge gains. Importantly, usage strategies differ by experience: beginners tend to rely heavily on GenAI toward task completion often without knowledge gain in the process, while intermediates adopt more selective approaches. We find that both over-reliance and minimal use result in weaker knowledge gains overall. Based on our results, we call on students and educators to adopt GenAI as a learning rather than a problem solving tool. Our study highlights the urgent need for guidance when integrating GenAI into programming education to foster deeper understanding.
翻译:以ChatGPT为代表的生成式人工智能(GenAI)工具的兴起,为计算教育带来了新的机遇与挑战。现有研究主要关注GenAI完成教育任务的能力及其对学生表现的影响,往往忽视了其对知识获取的作用。本研究探讨了在不同熟练程度下,GenAI辅助相较于传统在线资源在支持知识获取方面的差异。我们开展了一项受控用户实验,招募了24名具有两种不同编程经验水平(初学者、中级者)的本科生,以观察学生在解决编程任务时如何与ChatGPT交互。我们分析了任务表现、概念理解及交互行为。研究结果表明,使用GenAI生成完整解决方案能显著提升任务表现(尤其对初学者而言),但并未持续带来知识获取的增益。值得注意的是,使用策略因经验水平而异:初学者倾向于高度依赖GenAI以完成任务,过程中常无知识收获;而中级者则采取更具选择性的方法。我们发现,过度依赖与极少使用均会导致整体知识获取效果较弱。基于研究结果,我们呼吁学生和教育者将GenAI视为学习工具而非问题解决工具。本研究强调了将GenAI融入编程教育时亟需提供指导,以促进更深层次的理解。