Skip to main content
CS Teaching Tips

Main navigation

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

Cover the outer-loop of nested loops when tracing through loops to help students see the inner loop runs just like a single loop during execution to help students understand nested loops.

Share Cover the outer-loop of nested loops when tracing through loops to help students see the inner loop runs just like a single loop during execution to help students understand nested loops. with FacebookShare Cover the outer-loop of nested loops when tracing through loops to help students see the inner loop runs just like a single loop during execution to help students understand nested loops. with Twitter
  • Students struggle to see that the outer-loop doesn’t impact the inner-loop during the execution of nested loops.
    • Covering the outer-loop helps students see it’s irrelevant to the execution of the inner-loop.
  • Reiterating this fact can help students construct their loops correctly.

More about this tip

Tags

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

Interview with Charlie McDowell.

Other Tips By
Other Tips By Charlie McDowell

Similar tips

Encourage students to replace variables with values when tracing through code to reduce the necessary cognitive load.
Show students multiple examples of iteration in Scratch to help them understand and recognize more abstract programming patterns.
Misconception: Students get confused reconciling the coordinate system with the point Scratch uses as the center for Sprites.
  • 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