Skip to main content
CS Teaching Tips

Main navigation

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

Ask questions about what parts of a program change to help students identify times when a variable is needed.

Share Ask questions about what parts of a program change to help students identify times when a variable is needed. with FacebookShare Ask questions about what parts of a program change to help students identify times when a variable is needed. with Twitter
  • When you are trying to motivate variable use in a program, ask students:

    • What might be changing in this program?

    • How is it changing?

  • With the help of these motivating questions, you can then point out that we need a variable to keep track of that thing that is changing!

More about this tip

Tags

  • CS 1
  • Intro Programming
  • Programming Concepts
External Source

Interview with Aaron Cadle.

Other Tips By
Other Tips By Aaron Cadle

Similar tips

Explain recursion with the example of determining your row in a stadium by asking the row in front of your what row it is… asking until you get to the first row, the base case.
Explicitly show students how to login to Scratch because not all students have the same level of computer literacy.
Organize an activity where students make phone calls to their classmates with the goal of summing the numbers 1 through 6 in order to demonstrate recursion.

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

Privacy Policy