基于提示工程的编程考试题与答案生成
Generation of Programming Exam Question and Answer Using ChatGPT Based on Prompt Engineering
AI总结:
本文提出利用提示工程技术通过ChatGPT生成编程考试题及答案,涵盖理论与实践内容,提升评估效率与质量。
摘要:
在计算机科学中,学生被鼓励学习各种编程语言,如Python、C++和Java,以培养广泛的技术技能和问题解决能力。然而,设计能够评估学生创造力、问题解决能力和领域知识的客观考试题目仍是一个重大挑战。本文提出了一种方法,通过利用提示工程技术与ChatGPT来解决这些挑战。提示工程是一种高效的技巧,可以优化语言模型的性能,使模型能够自动生成高质量的考试题目,涵盖不同类型和难度级别,而无需对模型进行额外的微调。本研究应用了多种模式和模板来生成包含理论和实践内容的考试题目,从而促进对学生理论理解和动手编程能力的全面评估。进行了调查以验证所提出的方法,尽管某些领域仍有改进空间,但总体结果确认了其重要性和相关性。生成的题目和模型答案的质量与或优于手工编写的题目,同时显著减少了题目准备所需的时间和精力。本研究证明了通过提示工程进行自动考试题目生成能够提高评估工具的质量和效率,使其成为未来教育环境中的宝贵资产。
英文摘要:
In computer science, students are encouraged to learn various programming languages such as Python, C++, and Java, equipping them with a broad range of technical skills and problem-solving capabilities. Nevertheless, the design of objective examination questions to assess students' creativity, problem-solving abilities, and domain knowledge remains a significant challenge. This paper proposes a methodology to address these challenges by leveraging prompt engineering techniques with ChatGPT. Prompt engineering is an efficient technique that optimizes the performance of language models, enabling the automatic generation of high-quality exam questions with varying types and difficulty levels, all without requiring additional fine-tuning of the model. This study applies diverse patterns and templates to generate exam questions that incorporate both theoretical and practical components, thereby facilitating a comprehensive evaluation of students' theoretical understanding and hands-on programming proficiency. A survey was conducted to validate the proposed method, and although certain areas indicated room for improvement, the overall results confirmed its significance and relevance. The generated questions and model answers exhibit quality comparable to, or even surpassing, manually crafted questions while significantly reducing the time and effort required for question preparation. This research demonstrates that automated exam question generation through prompt engineering enhances the quality and efficiency of assessment tools in education, establishing it as a valuable asset for future educational environments.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。