《入门编程中的ChatGPT:代码质量、概念学习与学生感知的平衡评估》
ChatGPT in Introductory Programming: Counterbalanced Evaluation of Code Quality, Conceptual Learning, and Student Perceptions
AI总结:
本研究通过平衡准实验探究ChatGPT对CS1课程学生的影响,发现其可提升代码质量与效率,但概念理解提升效果因主题而异,建议结合结构化教学策略培养学生独立解题能力。
摘要:
研究背景:ChatGPT等大语言模型(LLM)正越来越多地被用于入门编程课程,提供实时代码生成、调试和讲解服务。这类工具虽能提升效率和代码质量,但人们仍担忧其会引发过度依赖,且可能对概念学习造成潜在影响。研究目的:探究在CS1课程中,使用ChatGPT对代码质量、概念理解、任务完成时长及学生感知的影响。研究方法:我们开展了一项平衡准实验研究,让学生在两项C语言编程作业(函数与结构体)中交替处于“可使用ChatGPT”和“不可使用ChatGPT”的条件下。我们通过多维度评分标准、概念后测问卷和任务完成时长,对学生提交的代码进行评估。研究结果:与无法使用ChatGPT的学生相比,可使用该工具的学生代码质量评分显著更高,完成任务的耗时更短。但概念理解的提升效果不一:函数主题的提升幅度更低,结构体主题的提升幅度更高。学生对ChatGPT的使用体验持正面态度,认可其在调试和练习方面的价值,同时也对其准确性和长期技能培养的影响表示担忧。研究结论:ChatGPT能提升编程新手的代码质量和效率,但未必能统一提升概念理解能力。建议采用结构化整合方式与配套教学策略,以培养学生独立解决问题的能力。
英文摘要:
Background: Large language models (LLMs) such as ChatGPT are increasingly used in introductory programming courses to provide real-time code generation, debugging, and explanations. While these tools can boost productivity and code quality, concerns remain about over-reliance and potential impacts on conceptual learning. Objective: To investigate how ChatGPT access affects code quality, conceptual understanding, task completion times, and student perceptions in a CS1 course. Methods: We conducted a counterbalanced, quasi-experimental study in which students alternated between ChatGPT and non-ChatGPT conditions across two programming assignments in C (functions and structures). We evaluated their code submissions using multidimensional rubrics, conceptual post-surveys, and task completion time. Results: Students who had access to ChatGPT produced significantly higher rubric scores for code quality and completed tasks in less time compared to those without access. However, gains in conceptual understanding were mixed, lower for the functions topic but higher for the structures topic. Students reported positive experiences with ChatGPT, citing its value for debugging and practice, while expressing concerns about accuracy and long-term skill development. Conclusions: ChatGPT can enhance code quality and efficiency for novice programmers, but may not uniformly improve conceptual understanding. Structured integration and complementary instructional strategies are recommended to foster independent problem-solving skills.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。