Revolutionizing C Programming Language Assessment through The Cognitive Code Profiling Model

Authors

  • Shahidatul Arfah Baharudin Smart System and Networking Section, Malaysian Institute of Information Technology, Universiti Kuala Lumpur, Kuala Lumpur, Malaysia
  • Adidah Lajis Smart System and Networking Section, Malaysian Institute of Information Technology, Universiti Kuala Lumpur, Kuala Lumpur, Malaysia

Keywords:

Cognitive Code Profiling Model, C programming assessment, Bloom’s Taxonomy, static code analysis, computer programming education, rule-based pattern matching

Abstract

Mastering the C programming language is a challenge for beginner students, requiring not just syntactical knowledge but deep cognitive engagement. Despite this complexity, traditional assessment methods remain largely superficial, focusing heavily on output correctness while failing to measure the cognitive processes and the specific depth of a student’s understanding. This research addresses this by introducing the Cognitive Code Profiling Model (CCPM), a hybrid assessment framework that synergizes structural code profiling with Natural Language Processing (NLP) to map programming performance to Bloom’s Taxonomy. This approach effectively translates raw code Line-of-Code (LoC) features into measurable indicators of cognitive complexity. The study utilizes a quantitative methodology where static code metric specifically Cyclomatic Complexity are fused with token-based logic (TF-IDF) to create a multi-dimensional feature vector. Validated on a dataset of 348 student submissions, the CCPM achieves a classification accuracy of 96.25% using a Random Forest architecture. Results demonstrate a strong positive correlation between logical complexity features and cognitive depth. This hybrid approach acts as a high-precision diagnostic tool, allowing lecturers to pinpoint specific learning deficits. By shifting the focus from error detection to cognitive profiling, the CCPM enhances the pedagogical strategy for computer science education.

Author Biography

Shahidatul Arfah Baharudin, Smart System and Networking Section, Malaysian Institute of Information Technology, Universiti Kuala Lumpur, Kuala Lumpur, Malaysia

shahidatularfah@unikl.edu.my

Downloads

Published

2026-04-01

How to Cite

Baharudin, S. A., & Lajis, A. (2026). Revolutionizing C Programming Language Assessment through The Cognitive Code Profiling Model . Semarak International Journal of Machine Learning, 9(1), 35–43. Retrieved from https://semarakilmu.my/index.php/sijml/article/view/1023

Issue

Section

Articles