Skip to main content
CS Teaching Tips

Main navigation

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

Misconception: Students believe that boolean values can only be used in conditionals.

  • Explain to students that boolean values are comparable to numbers or strings in that they can be used anywhere when programming.
    • This will encourage students to treat booleans as they would any other object.

More about this tip

Tags

  • Content Misconceptions
  • CS 1
  • Intro Programming
  • Programming Concepts
External Source

"Visual program simulation in introductory programming education" by Juha Sorva.

Other Tips By
Other Tips By Juha Sorva

Similar tips

Misconception: Students often have off by 1 errors when working with loops, which can result from mixing up > and >= as well as forgetting that arrays start at index 0.
Tell your students that they should assume their code has bugs to help decrease their frustration when writing code.
Relate how cool it would be to have the entire dictionary for another language put into your head to importing libraries in Java to help students make sense of this abstract concept.

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

Privacy Policy