Below are some practice problems for drawing environment diagrams. This page will be updated periodically as we cover more content related to diagramming. These are completely OPTIONAL, but are highly recommended as extra practice. Solutions for each problem can be found at the bottom of this page
Given the code block below, draw an environment diagram paused after the print statement on line 5 is reached.
Given the code block below, draw an environment diagram paused after the print statement on line 3 is reached.
Given the code block below, draw an environment diagram paused after the print statement on line 7 is reached.
Given the code block below, draw an environment diagram paused after the print statement on line 9 is reached.
Given the code block below, draw an environment diagram paused after the main function finishes running on line 27.
Given the code block below, draw an environment diagram paused after the main function finishes running on line 27.