このエントリーをはてなブックマークに追加
ID 69416
フルテキストURL
著者
Zhu, Zihao Department of Information and Communication Systems, Okayama University
Funabiki, Nobuo Department of Information and Communication Systems, Okayama University Kaken ID publons researchmap
Mentari, Mustika Department of Information and Communication Systems, Okayama University
Aung, Soe Thandar Department of Information and Communication Systems, Okayama University
Kao, Wen-Chung Department of Electrical Engineering, National Taiwan Normal University
Lee, Yi-Fang Department of Industrial Education, National Taiwan Normal University
抄録
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.
キーワード
JPLAS
Java programming learning
learning requirements
generative AI
prompt engineering
quality control
prompt optimization
発行日
2025-05-31
出版物タイトル
Electronics
14巻
11号
出版者
MDPI AG
開始ページ
2261
ISSN
2079-9292
資料タイプ
学術雑誌論文
言語
英語
OAI-PMH Set
岡山大学
著作権者
© 2025 by the authors.
論文のバージョン
publisher
DOI
Web of Science KeyUT
関連URL
isVersionOf https://doi.org/10.3390/electronics14112261
ライセンス
https://creativecommons.org/licenses/by/4.0/
Citation
Zhu, Z.; Funabiki, N.; Mentari, M.; Aung, S.T.; Kao, W.-C.; Lee, Y.-F. An Automatic Code Generation Tool Using Generative Artificial Intelligence for Element Fill-in-the-Blank Problems in a Java Programming Learning Assistant System. Electronics 2025, 14, 2261. https://doi.org/10.3390/electronics14112261