A newly published structural equation modeling investigation reveals that university students’ programming-oriented computational thinking skills are primarily driven by cognitive flexibility, academic self-efficacy, and extracurricular coding hours, rather than traditional demographic markers such as gender, academic major, or academic class standing. Published in the journal Smart Learning Environments by researchers Hatice Yıldız Durak and Ümmühan Avcı, the study systematically modeled the psychological and behavioral variables that shape how undergraduate students acquire and apply computational reasoning within coding environments. By evaluating 426 university participants, the authors established that individual cognitive adaptability consistently exerted a slightly stronger and more uniform direct influence across all core dimensions of computational capability than general academic self-efficacy beliefs. Furthermore, the empirical findings demonstrate that routine engagement in self-directed programming beyond formal classroom instruction significantly bolsters cognitive competencies, whereas institutional affiliation and gender distinctions showed no statistically meaningful direct predictive power regarding student performance.
Under this integrated theoretical umbrella, computational thinking is conceptualized not merely as technical coding syntax, but as an analytical problem-solving process that utilizes fundamental computer science principles to decompose complex problems, design sequential algorithms, and iteratively evaluate structural outcomes. The authors operationalized programming-oriented computational thinking into three distinct, interdependent dimensions: conceptual knowledge, algorithmic thinking, and evaluation. Conceptual knowledge encompasses an operational understanding of foundational computational structures, including conditional branches, looping routines, variable assignments, and modular functions. Algorithmic thinking reflects the cognitive ability to conceptualize, order, and formulate step-by-step logical procedures through mental visualization and pseudocode. Meanwhile, the evaluation dimension captures systematic error identification, diagnostic reasoning during syntax debugging, and assessing the functional efficiency and interface usability of completed programs.
To investigate these theoretical pathways empirically, the researchers deployed a correlational survey design paired with targeted qualitative inquiries, recruiting a diverse cohort of 426 undergraduate participants through convenience sampling across several university faculties. Within the total sample, 58.2 percent of participants identified as male and 41.8 percent identified as female, with the vast majority, accounting for 59.2 percent, falling between the ages of 20 and 22 years. Academic distribution was evenly balanced across campus disciplines, with 49.3 percent enrolled in engineering programs and 50.7 percent pursuing degrees in non-engineering faculties while actively taking programming or scripting coursework. In terms of academic seniority, first-year and second-year undergraduates represented 49.4 percent of the student body. The cohort reported an average academic achievement perception score of 2.15 on a three-point scale and dedicated an average of 3.53 hours per week to extracurricular programming activities. Rigorous procedural safeguards, including anonymous survey submissions, neutral question phrasing, and separated conceptual blocks, were implemented to minimize common method bias.
A pivotal design feature of the investigation was the division of the participant cohort into two distinct subgroups based on the technical characteristics and primary functional applications of the computer languages they utilized. Group 1 comprised 358 undergraduates experienced exclusively in general-purpose compiled or semi-compiled programming languages, specifically C, C++, C#, Java, and Python. These languages were deployed by students for extensive system-level software engineering, scientific data analysis, artificial intelligence architectures, game development, and desktop applications, requiring rigorous algorithmic construction and manual or runtime memory management. Conversely, Group 2 consisted of 68 undergraduates whose technical experience centered on scripting languages, namely HTML, CSS, and JavaScript. Students in this second cohort applied their skills primarily toward front-end web engineering, visual styling, client-side dynamic interactivity, and modular component integration. Although Python possesses interpreted scripting properties, it was deliberately assigned to Group 1 because participants utilized its extensive libraries for general-purpose system computing and data analysis rather than lightweight front-end web scripting.
Data collection relied on validated measurement instruments, including an investigator-developed personal profile form, three standardized psychometric scales, and a six-item semi-structured interview protocol. The 33-item Programming-Oriented Computational Thinking Scale demonstrated exceptional internal consistency, yielding an overall Cronbach’s alpha coefficient of 0.979, alongside high subscale reliability coefficients of 0.944 for conceptual knowledge, 0.905 for algorithmic thinking, and 0.959 for evaluation. Academic self-efficacy was assessed through a Turkish adaptation of Jerusalem and Schwarzer’s single-factor scale, displaying a Cronbach’s alpha of 0.70, while cognitive flexibility was evaluated using Celikkaleli’s adaptation of the Martin and Rubin scale, which achieved a Cronbach’s alpha of 0.804. Statistical verification via Partial Least Squares Structural Equation Modeling confirmed convergent validity, as average variance extracted values for all retained constructs exceeded the 0.50 benchmark. Internal consistency was reinforced by composite reliability scores spanning 0.917 to 0.963, while discriminant validity was verified using Heterotrait-Monotrait ratios strictly below the 0.90 threshold and the Fornell-Larcker criterion.
Structural equation evaluation across the entire participant cohort revealed that cognitive flexibility and academic self-efficacy served as statistically robust positive predictors across all three computational thinking sub-dimensions. Cognitive flexibility exhibited particularly consistent predictive power, registering path coefficients of 0.268 for algorithmic thinking, 0.272 for conceptual knowledge, and 0.307 for evaluation, with all associations reaching high statistical significance at p values below 0.001. Academic self-efficacy also demonstrated significant positive associations, yielding path coefficients of 0.212 for algorithmic thinking, 0.262 for conceptual knowledge, and 0.235 for evaluation. When assessing overall model performance, the standardized root mean square residual achieved a favorable value of 0.048, comfortably below the conservative 0.08 fit ceiling. Furthermore, the combined independent variables demonstrated moderate explanatory capacity, accounting for 25 percent of the variance in algorithmic thinking, 28 percent of the variance in conceptual knowledge, and 26 percent of the variance in program evaluation, demonstrating a cohesive structural alignment between psychological adaptability and computational performance.
Beyond cognitive and self-belief metrics, behavioral commitment demonstrated significant explanatory value, whereas demographic attributes showed no meaningful direct contribution to computational thinking competencies. Weekly time allocated to extracurricular programming activities produced significant positive path coefficients across algorithmic thinking (0.196, p < 0.001), conceptual knowledge (0.187, p = 0.001), and evaluation (0.208, p < 0.001). Prior programming experience also directly predicted algorithmic thinking (0.136, p = 0.016), conceptual knowledge (0.188, p = 0.001), and evaluation (0.126, p = 0.022). Students’ perception of their academic achievement significantly predicted algorithmic thinking (0.118, p = 0.012) and conceptual knowledge (0.129, p = 0.003), but failed to achieve significance for evaluation (0.087, p = 0.061). In sharp contrast, demographic variables demonstrated negligible predictive capacity, as academic department, gender, and grade level yielded non-significant path coefficients across all three dimensions, illustrating that technical computational reasoning develops independently of an individual’s formal academic program, class standing, or gender background.
Multi-group analysis revealed striking structural divergences when the structural equation model was evaluated separately across the two language cohorts. For students in Group 1, academic self-efficacy maintained statistically significant positive paths across algorithmic thinking, conceptual knowledge, and evaluation (all p < 0.001). However, among students in Group 2, academic self-efficacy failed to achieve statistical significance across any of the computational thinking dimensions. Conversely, cognitive flexibility significantly predicted computational thinking in both cohorts, but exerted a substantially stronger impact on evaluation skills among scripting students (path coefficient of 0.395) than among general-purpose programming students (path coefficient of 0.287). Most remarkably, the model explained dramatically higher portions of variance in Group 2, accounting for 40.5 percent of algorithmic thinking, 51.2 percent of conceptual knowledge, and 47.2 percent of evaluation variance, compared to 22.3 percent, 24.9 percent, and 22.3 percent respectively in Group 1, highlighting how interactive scripting environments amplify the role of cognitive flexibility.
Qualitative content analysis of semi-structured interview transcripts totaling 33 pages and 11,740 words provided rich explanatory context for these quantitative divergences. The researchers identified four primary overarching themes spanning twelve distinct sub-themes regarding learning trajectories, academic influences, extracurricular habits, and debugging methodologies. Undergraduates frequently highlighted that scripting languages provided instantaneous visual feedback (cited by 52 students) and fostered intuitive, exploratory learning (45 students), enabling rapid error detection through direct browser output. In contrast, general-purpose programming languages imposed substantial cognitive load due to complex abstract data structures and rigorous compiler diagnostics (38 students), while simultaneously supporting more comprehensive, modular algorithmic architecture (35 students). When confronting code bugs, 40 participants prioritized external documentation and online technical communities, such as Stack Overflow, GitHub, and video tutorials, while 20 students frequently relied on trial-and-error experimentation. Importantly, students displaying high cognitive flexibility reported adapting seamlessly during troubleshooting, while self-efficacious peers demonstrated greater patience and systematic persistence when tracing compiler errors.
Despite offering profound pedagogical insights, the researchers underscored several methodological limitations that temper the generalizability of their empirical conclusions. Programming experience did not function as a statistically significant moderator between self-efficacy or cognitive flexibility and computational thinking dimensions, suggesting that psychological adaptability operates independently of cumulative programming tenure. Additionally, the cross-sectional survey architecture precludes definitive causal assertions, while self-reported categorization may introduce classification overlap among students possessing hybrid scripting and programming backgrounds. The substantial sample size disparity between the 358 participants in Group 1 and the 68 participants in Group 2 also constrained comparative statistical power during multi-group comparisons, though partial least squares modeling remains comparatively robust under unequal cohort sizes. Future investigations should incorporate controlled experimental designs, standardized technical competency tests, and 5000 bootstrapping iterations to enhance estimation precision, while university educators should balance formal algorithmic rigor with interactive, rapid-feedback coding environments to cultivate adaptable computational thinking in diverse student bodies.
Subject of Research: Predictors of programming-oriented computational thinking skills in university students
Article Title: Modeling the variables related to programming-oriented computational thinking skills
Article References: Durak, H. Y., & Avcı, Ü. (2026). Modeling the variables related to programming-oriented computational thinking skills. Smart Learning Environments, 13(1), Article 37. https://doi.org/10.1186/s40561-026-00458-w
Image Credits: AI Generated
DOI: 10.1186/s40561-026-00458-w
Keywords: computational thinking, programming education, cognitive flexibility, academic self-efficacy, algorithmic thinking, conceptual knowledge, evaluation skills, partial least squares, structural equation modeling, scripting languages, programming languages, extracurricular programming, multi-group analysis, higher education, debugging strategies, computer science learning
Cite Scienmag News
Violet Maxwell. (November 24, 2026). Cognitive Flexibility Predicts University Students’ Programming Computational Thinking Skills. Scienmag. https://scienmag.com/cognitive-flexibility-predicts-university-students-programming-computational-thinking-skills/
Violet Maxwell. "Cognitive Flexibility Predicts University Students’ Programming Computational Thinking Skills." Scienmag, 24 November 2026, https://scienmag.com/cognitive-flexibility-predicts-university-students-programming-computational-thinking-skills/. Accessed 24 November 2026.
Violet Maxwell. "Cognitive Flexibility Predicts University Students’ Programming Computational Thinking Skills." Scienmag. November 24, 2026. https://scienmag.com/cognitive-flexibility-predicts-university-students-programming-computational-thinking-skills/








