Question 1 of 5
(a) Compute 16 MOD 5. (b) Compute 25 MOD 7. (c) Which of those two results is larger?
Responses receive AI feedback against a rubric after submission. Scores are practice estimates.
(a) Compute 16 MOD 5. (b) Compute 25 MOD 7. (c) Which of those two results is larger?
Compare 10 + 2 * 3 and (10 + 2) * 3.
(a) Evaluate both expressions. (b) Explain why they differ using order of operations. (c) Write parentheses that make 8 / 2 + 2 evaluate to 2.
List colors holds "red", "green", "blue" at indexes 1, 2, 3.
i ← (7 * 2 + 1) MOD 3
DISPLAY (colors[i + 1])
(a) Compute 7 * 2 + 1. (b) Compute that result MOD 3. (c) State what is displayed.
A clock-hand style counter uses hour MOD 12.
(a) What is 12 MOD 12? (b) What is 13 MOD 12? (c) Explain how MOD helps map large hour counts onto a repeating 0-11 range.
Trace the segment.
n ← 22
m ← n MOD 5
DISPLAY (m)
DISPLAY (n - m)
(a) What is m? (b) What does the second DISPLAY show? (c) Explain why n - m is divisible by 5.