Content area

Abstract

Mastering client-side Web programming is essential for the development of responsive and interactive Web applications. To support novice students’ self-study, in this paper, we propose a novel exercise format called the phrase fill-in-blank problem (PFP) in the Web Programming Learning Assistant System (WPLAS). A PFP instance presents a source code with blanked phrases (a set of elements) and corresponding Web page screenshots. Then, it requests the user to fill in the blanks, and the answers are automatically evaluated through string matching with predefined correct answers. By increasing blanks, PFP can come close to writing a code from scratch. To facilitate scalable and context-aware question creation, we implemented the PFP instance generation algorithm in Python using regular expressions. This approach targets meaningful code segments in HTML, CSS, and JavaScript that reflect the interactive behavior of front-end development. For evaluations, we generated 10 PFP instances for basic Web programming topics and 5 instances for video games and assigned them to students at Okayama University, Japan, and the State Polytechnic of Malang, Indonesia. Their solution results show that most students could solve them correctly, indicating the effectiveness and accessibility of the generated instances. In addition, we investigated the ability of generative AI, specifically ChatGPT, to solve the PFP instances. The results show 86.7% accuracy for basic-topic PFP instances. Although it still cannot fully find answers, we must monitor progress carefully. In future work, we will enhance PFP in WPLAS to handle non-unique answers by improving answer validation for flexible recognition of equivalent responses.

Details

1009240
Business indexing term
Title
A Phrase Fill-in-Blank Problem in a Client-Side Web Programming Assistant System
Author
Huiyu, Qi 1 ; Li, Zhikang 1 ; Funabiki Nobuo 1 ; Sandi Kyaw Htoo Htoo 1 ; Kao, Wen Chung 2 

 Department of Information and Communication Systems, Okayama University, Okayama 7008530, Japan; [email protected] (Z.L.); [email protected] (N.F.); [email protected] (H.H.S.K.) 
 Department of Electrical Engineering, National Taiwan Normal University, Taipei 10610, Taiwan; [email protected] 
Publication title
Volume
16
Issue
8
First page
709
Number of pages
27
Publication year
2025
Publication date
2025
Publisher
MDPI AG
Place of publication
Basel
Country of publication
Switzerland
e-ISSN
20782489
Source type
Scholarly Journal
Language of publication
English
Document type
Journal Article
Publication history
 
 
Online publication date
2025-08-20
Milestone dates
2025-06-11 (Received); 2025-08-12 (Accepted)
Publication history
 
 
   First posting date
20 Aug 2025
ProQuest document ID
3244039285
Document URL
https://www.proquest.com/scholarly-journals/phrase-fill-blank-problem-client-side-web/docview/3244039285/se-2?accountid=208611
Copyright
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/). Notwithstanding the ProQuest Terms and Conditions, you may use this content in accordance with the terms of the License.
Last updated
2025-08-27
Database
2 databases
  • ProQuest One Academic
  • ProQuest One Academic