Programming Assessment in E-Learning through Rule-Based Automatic Question Generation with Large Language Models
Open Access
- 6 December 2025
- journal article
- Published by Politeknik Negeri Batam in JOURNAL OF APPLIED INFORMATICS AND COMPUTING
- Vol. 9 (6) , 3356-3362
Abstract
This study develops an evaluation instrument for Python programming using a Rule-Based Automatic Question Generation (AQG) system integrated with Large Language Models (LLMs), designed based on the Revised Bloom’s Taxonomy. The urgency of this research stems from the limitations of conventional programming evaluations, which are often time-consuming, less objective, and insufficiently aligned with cognitive learning levels. The proposed method applies assessment terms as rule-based constraints to guide LLM-generated questions, ensuring both pedagogical validity and structural consistency in JSON format. A total of 91 questions were produced, consisting of multiple-choice and coding items, which were then validated by three programming experts and tested on 32 vocational students. The findings indicate that the instrument achieved an overall validity of 77.66% (valid category), with the highest accuracy at the Apply (96.30%) and Create (100%) levels. The reliability test using Cronbach’s Alpha yielded 0.721, showing acceptable internal consistency. Item difficulty analysis revealed a strong dominance of easy questions (97.78%), with only 2.22% classified as moderate and none as difficult. Student performance also showed a fluctuating pattern: high in Remember (94.79%), Understand (95.83%), and Create (95.60%), but lower in Apply (86.11%), Analyze (90.97%), and Evaluate (87.15%). These results confirm that integrating Rule-Based AQG with LLMs can produce valid, reliable, and adaptive evaluation instruments that not only capture basic programming competencies but also partially address higher-order cognitive skills. This research contributes both practically by providing educators with an efficient tool for generating evaluation items and academically by enriching the growing body of literature on AI-assisted assessment in programming education.Keywords
This publication has 19 references indexed in Scilit:
- Item analysis of multiple choice questions from assessment of health sciences students, Tigray, EthiopiaBMC Medical Education, 2025
- Toward expert-level medical question answering with large language modelsNature Medicine, 2025
- Generation of Bloom’s taxonomy-based complex-level questions using knowledge graph2024
- Analysis of LLMs for educational question classification and generationComputers and Education: Artificial Intelligence, 2024
- Automated Educational Question Generation at Different Bloom’s Skill Levels Using Large Language Models: Strategies and Evaluation2024
- Development and validation of an instrument to assess the knowledge and perceptions of predatory journalsHeliyon, 2023
- Curriculum, Teaching and Learning, and Assessments for Introductory Programming CourseIEEE Access, 2020
- Rule-Based Automatic Question Generation Using Semantic Role LabelingIEICE Transactions on Information and Systems, 2019
- A Rule-Based Method for Cognitive Competency Assessment in Computer Programming Using Bloom’s TaxonomyIEEE Access, 2019
- Bloom’s Taxonomy Based Approach to Learn Basic Programming Loops2018