What should the dry run track?

Practice this question from XOR From 1 to N - Modulo Cycle Pattern Practice Quiz, with options and an explanation.

Question

What should the dry run track?

Option A — Correct answer

Track n % 4 and the matching return case.

Option B

Only the final answer, not the bit state

Option C

The alphabetical order of variable names

Option D

Only whether input is sorted

Explanation

Track n % 4 and the matching return case.

XOR From 1 to N - Modulo Cycle Pattern Practice Quiz

All questions · Previous question · Next question

Open on QuizMaker