Variable Evaluation: an Exploration of Novice Programmers' Understanding and Common Misconceptions

被引:20
作者
Kohn, Tobias [1 ]
机构
[1] Swiss Fed Inst Technol, Univ Str 6, CH-8092 Zurich, Switzerland
来源
PROCEEDINGS OF THE 2017 ACM SIGCSE TECHNICAL SYMPOSIUM ON COMPUTER SCIENCE EDUCATION (SIGCSE'17) | 2017年
关键词
Programming; misconceptions; variables; novices; learning;
D O I
10.1145/3017680.3017724
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
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.
引用
收藏
页码:345 / 350
页数:6
相关论文
共 13 条
  • [1] A DIAGNOSIS OF BEGINNING PROGRAMMERS MISCONCEPTIONS OF BASIC PROGRAMMING STATEMENTS
    BAYMAN, P
    MAYER, RE
    [J]. COMMUNICATIONS OF THE ACM, 1983, 26 (09) : 677 - 679
  • [2] Byckling P., 2006, SIGCSE Bulletin, V38, P413, DOI 10.1145/1124706.1121470
  • [3] Du Boulay B., 1986, Journal of Educational Computing Research, V2, P57, DOI 10.2190/3LFX-9RRF-67T8-UVK9
  • [4] Grandell Linda., 2006, Proceedings of the 8th Australasian Conference on Computing Education, V52, P71, DOI DOI 10.5555/1151869.1151880
  • [5] Guo Philip J, 2013, SIGCSE 13, P579, DOI DOI 10.1145/2445196.2445368
  • [6] Kuittinen M., 2004, SIGCSE Bulletin, V36, P57, DOI 10.1145/1026487.1008014
  • [7] Lahtinen E., 2005, SIGCSE Bulletin, V37, P14, DOI 10.1145/1151954.1067453
  • [8] Lister R., 2004, SIGCSE Bulletin, V36, P119, DOI 10.1145/1041624.1041673
  • [9] Ma LX, 2007, SIGCSE 2007: PROCEEDINGS OF THE THIRTY-EIGHTH SIGCSE TECHNICAL SYMPOSIUM ON COMPUTER SCIENCE EDUCATION, P499, DOI 10.1145/1227504.1227481
  • [10] Saying the wrong thing: improving learning with multimedia by including misconceptions
    Muller, A.
    Bewes, J.
    Sharma, M. D.
    Reimann, P.
    [J]. JOURNAL OF COMPUTER ASSISTED LEARNING, 2008, 24 (02) : 144 - 155