Thinking out of the Box

Comparing metaphors for variables in programming education

Conference Paper (2018)
Author(s)

F.F.J. Hermans (TU Delft - Software Engineering)

Alaaeddin Swidan (TU Delft - Software Engineering)

E Aivaloglou (Open University of the Netherlands)

Marileen Smit (TU Delft - Software Engineering)

Research Group
Software Engineering
Copyright
© 2018 F.F.J. Hermans, A.A.S. Swidan, E.A. Aivaloglou, M.I.E. Smit
DOI related publication
https://doi.org/10.1145/3265757.3265765
More Info
expand_more
Publication Year
2018
Language
English
Copyright
© 2018 F.F.J. Hermans, A.A.S. Swidan, E.A. Aivaloglou, M.I.E. Smit
Research Group
Software Engineering
Pages (from-to)
1-8
ISBN (electronic)
978-1-4503-6588-8
Reuse Rights

Other than for strictly personal use, it is not permitted to download, forward or distribute the text or part of it, without the consent of the author(s) and/or copyright holder(s), unless the work is under an open content license such as Creative Commons.

Abstract

When teaching novices programming, misconceptions can occur. Misconception are incorrect beliefs about certain programming concept. For example, some novices think that a variable can hold multiple values, in the case of two consecutive assignment statements, such as x = 5; x = 7. While explaining variables introductory materials often use the metaphor of a box for a variable, which might contribute to the 'multiple values' hypothesis. To investigate this, we design and run a controlled experiment with 496 novice programmers, both children and adults. Half of our participants receive an introductory programming lesson in which we explain a variable as a box, while the other half of participants receive the explanation of a variable as being a label. They are subsequently questioned about their understanding of variables. Our results show that, for the simple questions involving one assignment, the box group performs better. However, for questions involving the misconception - with two consecutive assignment statements - the label group outperforms the box group. This however primarily occurs when considering variables of type string, for integers subjects interpret the statements as numeric values to be added.

Files

Box_label_vars.pdf
(pdf | 0.757 Mb)
License info not available