In this lesson, we will learn what a trace table is and how to use one. Trace tables help check logic errors in a program and help us learn how to read and follow programs.
Licence
This content is made available by Oak National Academy Limited and its partners and licensed under Oak’s terms & conditions (Collection 1), except where otherwise stated.
What will be the output of this program if the user enter's Hedy when prompted?
Correct answer: Hello Hedy
Hello Hedy
There is an error in the program
Try again Hedy
Try again Hedy, Hello, Hedy
Q2.
What will be the output of this program if the user enter's Rebecca when prompted?
Hello Hedy
There is an error in the program
Correct answer: Try again Hedy
Try again Hedy
Try again Hedy, Hello, Hedy
Q3.
True or False: A while loop isn’t constantly evaluating the condition. It executes the entire sequence within the loop before re-evaluating the condition.