Cookies?
Library Header Image
LSE Research Online LSE Library Services

LMC + scratch: a recipe to construct a mental model of program execution

Javed, Noman ORCID: 0000-0001-7770-6616 and Zeeshan, Faisal (2022) LMC + scratch: a recipe to construct a mental model of program execution. In: English, Rosanne and Stewart, Craig, (eds.) Proceedings of the 6th Conference on Computing Education Practice, CEP 2022. ACM International Conference Proceeding Series. Association for Computing Machinery, New York, NY, 33 - 36. ISBN 9781450395618

[img] Text (LMC-Scratch) - Accepted Version
Download (1MB)
Identification Number: 10.1145/3498343.3498353

Abstract

Understanding how programs execute is one of the critical activities in the learning journey of a programmer. A novice constructs a mental model of program execution while learning programming. Any misconceptions at this stage lead to the development of a discrepant mental model. If left untreated, learning in advanced subjects like data structures and compiler construction may suffer. One of the ways to prevent the situation is carefully and explicitly unveiling the details of program execution. We employed Little Man Computer (LMC) for this purpose. Its interactive visual interface helped them internalise how software interacted with the hardware to achieve the programmer's objective. After spending a few sessions on the programming of LMC, we moved to Scratch. Scratch is a much higher-level language than the LMC assembly. So, while introducing Scratch programming constructs, we mapped the LMC equivalents of these instructions. The strategy helped evade several misconceptions by developing a deep understanding of the program execution model. It also served as a building block for introducing other concepts like state, abstraction, the need for higher-level languages and the role of compilers etc. We tried this approach in an Introduction to Computer Science module where most students had zero or very minimal exposure to programming. We received positive feedback from students and other fellow teachers teaching in the subsequent semesters.

Item Type: Book Section
Official URL: https://dl.acm.org/doi/proceedings/10.1145/3498343
Additional Information: © 2022 ACM
Divisions: CPNSS
Subjects: Q Science > QA Mathematics > QA75 Electronic computers. Computer science
Date Deposited: 20 Jan 2022 12:03
Last Modified: 28 Mar 2024 04:36
URI: http://eprints.lse.ac.uk/id/eprint/113473

Actions (login required)

View Item View Item

Downloads

Downloads per month over past year

View more statistics