Login or Create an Account to view the mark scheme, comment, and add to a test
What is the value of N after the while loop has completed?
N = 7 loop while N > 3 N = N - 3 A = N mod 2 N = N + A + 1 end loop
(a).
1
(b).
3
(c).
5
(d).
The while loop runs infinitely. Therefore N will hold whatever value it happens to have reached when the program runs out of resources and crashes.

Multiple Choice1 MarkPremium
46 Uses53 Views3 Likes