跳至主導覽 跳至搜尋 跳過主要內容

An Automatic Code Generation Tool Using Generative Artificial Intelligence for Element Fill-in-the-Blank Problems in a Java Programming Learning Assistant System

研究成果: 雜誌貢獻期刊論文同行評審

2   連結會在新分頁中打開 引文 斯高帕斯(Scopus)

摘要

Presently, Java is a fundamental object-oriented programming language that can be mastered by any student in information technology or computer science. To assist both teachers and students, we developed the Java Programming Learning Assistant System (JPLAS). It offers several types of practice problems with different levels and learning goals for step-by-step self-study, where any answer is automatically marked in the system. One challenge for teachers that is addressed with JPLAS is the generation of proper exercise problems that meet learning requirements. We implemented programs for generating new problems from given source codes, as collecting and evaluating suitable codes remains time-consuming. In this paper, we present an automatic code generation tool using generative AI to solve this challenge. Prompt engineering is used to help generate an appropriate source code, and the quality is controlled by optimizing the prompt based on the outputs. For applications in JPLAS, we implement a web application system to automatically generate an element fill-in-the-blank problem (EFP) in JPLAS. For evaluation, we select the element fill-in-the-blank problem (EFP) as the target type in JPLAS and generate several instances using this tool. The results confirm the validity and effectiveness of the proposed method.

原文英語
文章編號2261
期刊Electronics (Switzerland)
14
發行號11
DOIs
出版狀態已發佈 - 2025 6月

ASJC Scopus subject areas

  • 控制與系統工程
  • 訊號處理
  • 硬體和架構
  • 電腦網路與通信
  • 電氣與電子工程

指紋

深入研究「An Automatic Code Generation Tool Using Generative Artificial Intelligence for Element Fill-in-the-Blank Problems in a Java Programming Learning Assistant System」主題。共同形成了獨特的指紋。

引用此