Understanding Students’ Failure to use Functions as a Tool for Abstraction – An Analysis of Questionnaire Responses and Lab Assignments in a CS1 Python Course

Pontus Haglund, Filip Strömbäck, Linda Mannila

Research output: Contribution to journalArticleScientificpeer-review

Abstract

Controlling complexity through the use of abstractions is a critical part of problem solving in programming. Thus, becoming proficient with procedural and data abstraction through the use of user-defined functions is important. Properly using functions for abstraction involves a number of other core concepts, such as parameter passing, scope and references, which are known to be difficult. Therefore, this paper aims to study students’ proficiency with these core concepts, and students’ ability to apply procedural and data abstraction to solve problems. We collected data from two years of an introductory Python course, both from a questionnaire and from two lab assignments. The data shows that students had difficulties with the core concepts, and a number of issues solving problems with abstraction. We also investigate the impact of using a visualization tool when teaching the core concepts.

Original languageEnglish
JournalInformatics in Education
Volume20
Issue number4
Pages (from-to)583-614
Number of pages32
ISSN1648-5831
DOIs
Publication statusPublished - 2021
Externally publishedYes
MoE publication typeA1 Journal article-refereed

Fields of Science

  • Abstraction
  • core concepts
  • CS1
  • data abstraction
  • functions
  • parameter passing
  • prerequisites
  • procedural abstraction
  • Python
  • Python Tutor
  • references
  • scope
  • 516 Educational sciences
  • 113 Computer and information sciences

Cite this