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

Use technical vocabulary consistently and define terms repeatedly to help students gain competency and fluency speaking in technical terms.
Misconception: Students may have trouble identifying errors in their code that cause elements to disappear from the page.
Even if students are developing useful strategies for problem solving, they can be easily discouraged if they don’t see immediate, good results.

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

Privacy Policy