Exam-style question
Try this first
Which action best demonstrates logical reasoning when evaluating an algorithm?.
- A.Running the code and timing its execution.
- B.Drawing a flowchart for the algorithm.
- C.Manually stepping through the logic with sample data to predict the result.
- D.Uploading the program to a different device.
Answer and explanation
Concise answer
Manually stepping through the logic with sample data to predict the result.
Why this is correct
Manually tracing logic is logical reasoning, helping you predict outputs and identify flaws before running the code.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
