Towards a Code-Based Assessment of Computational Thinking Skills
Computational thinking (CT) skills are central to higher-education programming, yet assessing them at scale is challenging. Automated source-code analysis is a promising path, but its validity at university level is still poorly understood. We examined how far code-based metrics can capture traces of two CT skills: abstraction and algorithmic thinking. In a controlled study, 44 students enrolled in a Data Structures course completed four programming exercises designed to elicit evidence of the two target computational thinking skills. Each submission was assessed using three independent sources: an automated score based on structural code metrics, a rubric-based score by experts, and a CT self-efficacy scale. The three sources were compared using Spearman correlations, quartile analyses, and qualitative inspection of fourteen concordant and divergent cases. At the per-student level, the three sources did not converge for either skill. Per-exercise, one converged with expert evaluation, while another showed that the sources captured distinct, complementary facets of the skill—an exercise-design effect. Qualitative cases reinforced this view, illustrating what each source reads: from structural shape to semantic correctness. Automated code-based assessment of CT can provide informative structural evidence, but works best as one element of a multi-source approach in which structural signals complement, rather than replace, expert evaluation.
Authors
- Lilliana Sancho-Chavarría (ORCID: https://orcid.org/0000-0002-4522-1259)
- Jorge Monge-Fallas (ORCID: https://orcid.org/0000-0002-1651-3543)
- Isaac Alpizar-Chacón (ORCID: https://orcid.org/0000-0002-6931-9787)
- Ignacio Trejos-Zelaya (ORCID: https://orcid.org/0000-0003-4361-8444)
- Antonio González-Torres (ORCID: https://orcid.org/0000-0001-5427-0637)
- Herson Esquivel-Vargas
Institutions
- Instituto Tecnológico de Costa Rica (CR)
- Business University of Costa Rica (CR)
Publication Details
- Journal
- Applied Sciences
- Published
- 2026-07-23
- DOI
- https://doi.org/10.3390/app16157400
- Primary Topic
- Teaching and Learning Programming
- Type
- article
- Field-Weighted Citation Impact
- 0.00