Variable Evaluation
Author:
Open Access
- 8 March 2017
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 345-350
Abstract
For novice programmers one of the most problematic concepts is variable assignment and evaluation. Several questions emerge in the mind of the beginner, such as what does x = 7 + 4 or x = x + 1 really mean? For instance, many students initially think that such statements store the entire calculation in variable x, evaluating the result lazily when actually needed. The common increment pattern x = x + 1 is even believed to be outright impossible. This paper discusses a multi-year project examining how high school students think of assignments and variables. In particular, where does the misconception of storing entire calculations come from? Can we explain the students' thinking and help them develop correct models of how programming works? It is particularly striking that a model of the computer as a machine with algebraic capabilities would indeed produce the observed misconceptions. The misconception might simply be attributed to the expectation that the computer performs computations the exact same way students are taught to in mathematics.Keywords
This publication has 12 references indexed in Scilit:
- Online python tutor2013
- Saying the wrong thing: improving learning with multimedia by including misconceptionsJournal of Computer Assisted Learning, 2007
- Investigating the viability of mental models held by novice programmersACM SIGCSE Bulletin, 2007
- Roles of variables and programming skills improvementACM SIGCSE Bulletin, 2006
- A multi-national study of reading and tracing skills in novice programmersACM SIGCSE Bulletin, 2004
- Teaching roles of variables in elementary programming coursesACM SIGCSE Bulletin, 2004
- A Summary of Misconceptions of High School Basic ProgrammersJournal of Educational Computing Research, 1986
- Some Difficulties of Learning to ProgramJournal of Educational Computing Research, 1986
- Signification et fonctionnement du concept de variable informatique chez des eleves debutantsEducational Studies in Mathematics, 1985
- A diagnosis of beginning programmers' misconceptions of BASIC programming statementsCommunications of the ACM, 1983