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.

Share Misconception: Students believe that boolean values can only be used in conditionals. with FacebookShare Misconception: Students believe that boolean values can only be used in conditionals. with Twitter
  • 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

Distinguish the differences between print statements and return statements to help students understand that these elements are not related because this conflation can cause a lot of confusion.
Be careful to introduce code that students are equipped to understand; otherwise, students may not be able to demonstrate their comprehension.
Misconception: If you consistently use the same variable names during class in lectures and examples, students may incorrectly assume objects in Java can only have those names.
  • CSTT Facebook
  • CSTT Twitter

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

Privacy Policy

  • National Science Foundation
  • Sage Fox Group
  • Harvey Mudd College