Question 2 • VA-Information Technology Fundamentals B
Check the code line by line, step through it with a debugging tool, and run a sample test scenario to compare the program’s results with what you expect. These methods can reveal mistakes in the logic even when the code runs without crashing. Waiting for an error message is not reliable because logic errors often do not produce one.
AI-written and checked against the verified answer.