Home > Published Issues > 2023 > Volume 9, No. 1, March 2023 >

An Implementation of Code Validation Function in C Programming Learning Assistant System

Annisa Anggun Puspitasari 1, Nobuo Funabiki 1, Xiqin Lu 2*, Huiyu Qi 2, Htoo Htoo Sandi Kyaw 3, and
Kiyoshi Ueda 4
1. Okayama University, Japan
2. Graduate School of Natural Science and Technology, Okayama University, Japan
3. Division of Advanced Information Technology and Computer Science, Tokyo University of Agriculture and Technology, Tokyo, Japan
4. College of Engineering, Nihon University, Koriyama
*Correspondence: p06v8z20@s.okayama-u.ac.jp (X.L.)

Abstract—In many universities around the world, C programming is offered as the first programming course. To help novice students learn on their own, we have developed the C Programming Learning Assistant System (CPLAS). Currently, CPLAS offers simple practice questions at the elementary level, where any question requires a word, a sentence, or a number as the answer and the student answer is checked against the correct answer by string matching. However, CPLAS does not cover the problems of writing source codes completely from scratch such that the correctness of each code must be validated automatically. In this paper, we present the implementation of the code validation function for validating the answer source code through 1) compiling test, 2) execution test, and 3) output test. Here, the software test approach using test codes is not adopted, because it might be too difficult for novice students. For evaluations, we applied the proposal to 2, 045 source codes from 43 first-year students at the C programming course in Nihon University, Japan. We analyzed the answer results and confirmed the effectiveness of the proposal. In future works, we will introduce this function in the CPLAS platform, which will be used to help students with self-studies. 
 
Keywords—C programming, C Programming Learning Assistant System (CPLAS), novice student, self-study, code validation 

Cite: Annisa Anggun Puspitasari, Nobuo Funabiki, Xiqin Lu, Huiyu Qi, Htoo Htoo Sandi Kyaw, and Kiyoshi Ueda, "An Implementation of Code Validation Function in C Programming Learning Assistant System," International Journal of Learning and Teaching, Vol. 9, No. 1, pp. 24-30, March 2023. doi: 10.18178/ijlt.9.1.24-30

Copyright © 2023 by the authors. This is an open access article distributed under the Creative Commons Attribution License (CC BY-NC-ND 4.0), which permits use, distribution and reproduction in any medium, provided that the article is properly cited, the use is non-commercial and no modifications or adaptations are made.