Analysis of Programming Capability of LLMs in the Context of Computer Science I
摘要
This study presents a comparative evaluation of three large language models—Gemini 2.0 Flash, ChatGPT 4.o, and Copilot Enterprise—in the context of automated code generation. The models were assessed across multiple dimensions covered in CS I including decision structures, repetition structures, functions, class & OOP, code quality, documentation, robustness, algorithmic logic, and input validation. The results indicate that all three models achieved A(Excellent) performance in repetition structure and Class & OOP. All three models achieved B (Good) performance in function category. However, the study reveals a significant gap in comments and documentation, with all models scoring at or below the minimum passing grade. The gap found indicated the improvement in AI-generated code to support maintainable and collaborative software development.