Login or Create an Account to view the mark scheme (answer), comment, and add to a test
Consider the following algorithm.
Algorithm numberbox(n)
a ← 1
b ← 1
For each digit in n Do
If digit is even Do
a ← a + b
b ← b + 1
If digit is odd Do
a ← a × b
b ← b - 1
Return a
What does the algorithm numberbox output when n = 2023?
(a).
11
(b).
12
(c).
3
(d).
28
Multiple Choice1 MarkShared
0 Uses2 Views0 Likes