Skip to main content
CS Teaching Tips

Main navigation

  • Browse All Tips
  • Tags
  • 3D
  • About
  • Rate Tips
  • Tip Sheets

Misconception: Students think that when they create a new variable within a function, that function will automatically return that variable’s value when executed.

  • For example, students think that by assigning result = 2 in a function, the function will return 2.

More about this tip

Tags

  • Content Misconceptions
  • CS 1
  • Intro Programming
External Source

"Exploring programming misconceptions: an analysis of student mistakes in visual program simulation exercises" by Teemu Sirkiä and Juha Sorva.

Other Tips By
Other Tips By Juha Sorva
Juha Sorva

Similar tips

Help students see that they’re building basic understanding over the course of the semester that will turn into wider understanding since they may become frustrated with their perceived lack of progress.
Dedicate yourself to undergraduate students’ success from start to finish; be prepared to respond to students’ fears, tears, and triumphs.
Challenge students to place the fewest number of ice cream vans on a map of a town while maximizing ice cream availability to introduce the brute-force method in an accessible way.

For more information or to report a bug, contact us at admin@csteachingtips.org. Built with Bootstrap. Powered by Drupal.

Privacy Policy