Using Large Language Models for Student-Code Guided Test Case Generation in Computer Science Education

被引:0
作者
Kumar, Nischal Ashok [1 ]
Lan, Andrew S. [1 ]
机构
[1] Univ Massachusetts Amherst, Amherst, MA 01003 USA
来源
AI FOR EDUCATION WORKSHOP | 2024年 / 257卷
关键词
Computer Science Education; Large Language Models; Test Case Generation;
D O I
暂无
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
In computer science education, test cases are an integral part of programming assignments since they can be used as assessment items to test students' programming knowledge and provide personalized feedback on student-written code. The goal of our work is to propose a fully automated approach for test case generation that can accurately measure student knowledge, which is important for two reasons. First, manually constructing test cases requires expert knowledge and is a labor-intensive process. Second, developing test cases for students, especially those who are novice programmers, is significantly different from those oriented toward professional-level software developers. Therefore, we need an automated process for test case generation to assess student knowledge and provide feedback. In this work, we propose a large language model-based approach to automatically generate test cases and show that they are good measures of student knowledge, using a publicly available dataset that contains student-written Java code. We also discuss future research directions centered on using test cases to help students.
引用
收藏
页码:170 / 178
页数:9
相关论文
共 50 条
  • [31] Personalized Impression Generation for PET Reports Using Large Language Models
    Tie, Xin
    Shin, Muheon
    Pirasteh, Ali
    Ibrahim, Nevein
    Huemann, Zachary
    Castellino, Sharon M.
    Kelly, Kara M.
    Garrett, John
    Hu, Junjie
    Cho, Steve Y.
    Bradshaw, Tyler J.
    JOURNAL OF IMAGING INFORMATICS IN MEDICINE, 2024, 37 (02): : 471 - 488
  • [32] Automated Unit Test Improvement using Large Language Models at Meta
    Alshahwan, Nadia
    Chheda, Jubin
    Finogenova, Anastasia
    Gokkaya, Beliz
    Harman, Mark
    Harper, Inna
    Marginean, Alexandru
    Sengupta, Shubho
    Wang, Eddy
    COMPANION PROCEEDINGS OF THE 32ND ACM INTERNATIONAL CONFERENCE ON THE FOUNDATIONS OF SOFTWARE ENGINEERING, FSE COMPANION 2024, 2024, : 185 - 196
  • [33] Path-guided conformance test case generation for models with data and time using symbolic execution techniques
    Bannour, Boutheina
    Lapitre, Arnault
    Le Gall, Pascale
    SCIENCE OF COMPUTER PROGRAMMING, 2025, 243
  • [34] Automatic Feedback Generation on K-12 Students' Data Science Education by Prompting Cloud-based Large Language Models
    Fung, Sze Ching Evelyn
    Wong, Man Fai
    Tan, Chee Wei
    PROCEEDINGS OF THE ELEVENTH ACM CONFERENCE ON LEARNING@SCALE, L@S 2024, 2024, : 255 - 258
  • [35] MAGECODE: Machine-Generated Code Detection Method Using Large Language Models
    Pham, Hung
    Ha, Huyen
    Tong, Van
    Hoang, Dung
    Tran, Duc
    Le, Tuyen Ngoc
    IEEE ACCESS, 2024, 12 : 190186 - 190202
  • [36] <monospace>BadCodePrompt</monospace>: backdoor attacks against prompt engineering of large language models for code generation
    Qu, Yubin
    Huang, Song
    Li, Yanzhou
    Bai, Tongtong
    Chen, Xiang
    Wang, Xingya
    Li, Long
    Yao, Yongming
    AUTOMATED SOFTWARE ENGINEERING, 2025, 32 (01)
  • [37] ChemGen: Towards Understanding First-Principles Calculation Code Generation Based on Large Language Models
    Gao, Peng
    Qiu, Feng
    Hua, Baojian
    PROCEEDINGS OF 2024 3RD INTERNATIONAL CONFERENCE ON CYBER SECURITY, ARTIFICIAL INTELLIGENCE AND DIGITAL ECONOMY, CSAIDE 2024, 2024, : 281 - 287
  • [38] Optimal Test Case Generation for Simulink Models Using Slicing
    Jiang, Zhenying
    Wu, Xiao
    Dong, Zeqian
    Mu, Ming
    2017 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY AND SECURITY COMPANION (QRS-C), 2017, : 363 - 369
  • [39] Effect of large language models artificial intelligence chatgpt chatbot on achievement of computer education students
    Mohammed, Ibrahim Abba
    Bello, Ahmed
    Ayuba, Bala
    EDUCATION AND INFORMATION TECHNOLOGIES, 2025,
  • [40] Synthetic Time Series Generation for Decision Intelligence Using Large Language Models
    Grigoras, Alexandru
    Leon, Florin
    MATHEMATICS, 2024, 12 (16)