中等ICT-EXAM-012

The reliable way to answer an algorithm trace is to:

A. Add a step that would make the result look more sensible.
B. Write the output you expected before you read the conditions.
C. Follow the steps that are written and record each variable that changes.✓ 答案
D. Skip any value that sits on a boundary.

解說

The trace table is the answer. Boundaries are where wrong comparison symbols show up, so they are the values you should not skip.

「應試技巧」全部 12 題 · 資訊及通訊科技 MCQ 題庫