An Implementation of Offline Answering Function for Code Completion Problem in PLAS

Htoo Htoo Sandi Kyaw, Nobuo Funabiki, Minoru Kuribayashi · 2021 IEEE 3rd Global Conference on Life Sciences and Technologies (LifeTech) · 2021

Currently, we are studying the Programming Learning Assistant System (PLAS) to assist self-studies of C/C++/Java/JavaScript/Python programming. Previously, we implemented the offline answering function on a Web browser for the element fill-in-blank problem (EFP) in PLAS. EFP requests filling in the blank elements in a given source code, where the correctness of any answer element is validated through string matching using the JavaScript program. The code completion problem (CCP) is the generalization of EFP for coding and debugging study. CCP requests completing the code that has missing elements, where the correctness of any statement is validated. In this paper, we implement the offline answering function for CCP by modifying the one for EFP. The two-level marking function is newly adopted to encourage students to be aware of the correct usage of tabs and spaces in the source code for readable code. We verify the correctness of the implementation through solving various CCP instances.

Read the paper · More papers on PaperTik