Skip to main content
CS Teaching Tips

Main navigation

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

Trace through nested conditionals with students because nesting makes it difficult for them to track which lines of code get executed when.

Share Trace through nested conditionals with students because nesting makes it difficult for them to track which lines of code get executed when. with FacebookShare Trace through nested conditionals with students because nesting makes it difficult for them to track which lines of code get executed when. with Twitter
  • Even students who have mastered IF/ELSE statements have difficulty with nested conditionals.
  • See the Code.org unplugged Nested Conditionals lesson plan for a relevant in-class activity!

More about this tip

Tags

  • Development Methods
  • Programming Concepts
External Source
Interview with Lisa Milenkovic
Other Tips By
Other Tips By Lisa Milenkovic

Similar tips

Use the model of Towers of Hanoi in order to help students understand recursion. To demonstrate Towers of Hanoi, use three baby ring-stacking toys and the programming language Alice.
Remind students that variable assignment occurs in the order assignments are given. This avoids the misconception that changing one value affects other variables assigned before it.
Misconception: Students have trouble understanding the difference between Get, Post, Put/Patch, and Delete in Ruby on Rails Routing.
  • 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