ABSTRACT
Conditional logic and control structures are typically considered an important part of introductory computer science education, yet novices often struggle to correctly write and navigate such program logic. Previous research has largely attended to student difficulties with parsing Boolean expressions, but has not had much focus on the control structures themselves. To investigate how students work through complicated logic, we conducted a qualitative analysis of four one-on-one interviews with undergraduate students in which we gave students a piece of code with a complicated conditional control structure and asked them to write test cases for all paths. We found that several students struggled to determine the output the function would provide for a given input, and we hypothesize this occurred because they incorrectly treated an if statement as an else-if statement. One student simply wrote an incorrect output, which we believe occurred because they made this particular mistake, while another student got partway through the problem before verbally seeming to correct themself and re-identify a statement as an else-if. Based on our results, we hypothesize that novices may sometimes misidentify a sequential if statement as an else-if, which may lead them to incorrectly interpret a conditional control structure.
- Ebrahimi, A. 1994. Novice programmer errors: Language constructs and plan composition. International Journal of Human-Computer Studies, 41(4), 457--480. Google ScholarDigital Library
- Grover, S., & Basu, S. (2017, March). Measuring student learning in introductory block-based programming: Examining misconceptions of loops, variables, and boolean logic. In Proceedings of the 2017 ACM SIGCSE Technical Symposium on Computer Science Education (pp. 267--272). ACM. Google ScholarDigital Library
- Milne, I., & Rowe, G. (2002). Difficulties in learning and teaching programming--views of students and tutors. Education and Information technologies, 7(1), 55--66. Google ScholarDigital Library
- Nathan, M. J., & Petrosino, A. (2003). Expert blind spot among preservice teachers. American educational research journal, 40(4), 905--928.Google Scholar
- Rich, K. M., Strickland, C., Binkowski, T. A., Moran, C., & Franklin, D. (2018). K--8 learning trajectories derived from research literature: sequence, repetition, conditionals. ACM Inroads, 9(1), 46--55. Google ScholarDigital Library
Index Terms
- A Qualitative Analysis of Students' Understanding of Conditional Control Structures
Recommendations
Using Social Cognitive Career Theory to Understand Why Students Choose to Study Computer Science
ICER '18: Proceedings of the 2018 ACM Conference on International Computing Education ResearchThe aim of this research is to use Social Cognitive Career Theory (SCCT) to identify and understand reasons why students choose to study Computer Science (CS) at university. SCCT focuses on students' prior experience, social support, self-efficacy and ...
The use of electronic resources by undergraduate students at the University of Venda, South Africa
PurposeThis paper aims to establish the level of use of the electronic resources at the University of Venda, which is one of the previously disadvantaged universities in South Africa. It identifies the different electronic resources used at the ...
Technology workshops by in-service teachers for pre-service teachers
SIGUCCS '01: Proceedings of the 29th annual ACM SIGUCCS conference on User servicesThis project was an initiative through university courses to have graduate in-service teachers, who have learned the use of technology for classroom instruction, offer workshops to undergraduate pre-service teachers. The goals of the project were two-...
Comments