Share Misconception: Students think that when they create a new variable within a function, that function will automatically return that variable’s value when executed. with FacebookShare Misconception: Students think that when they create a new variable within a function, that function will automatically return that variable’s value when executed. with Twitter
Like(2606 Likes)
- For example, students think that by assigning
result = 2
in a function, the function will return 2.
More about this tip
External Source
"Exploring programming misconceptions: an analysis of student mistakes in visual program simulation exercises" by Teemu Sirkiä and Juha Sorva.
Other Tips By