Login or Create an Account to view the mark scheme, comment, and add to a test
Consider the following pseudocode:
VALUES = [ ]
loop I from 0 to 3
VALUES[I] = ARRAY[I][0]
loop J from 1 to 2
if ARR[I][J] < VALUES[I] then
VALUES[I] = ARR[I][J]
end if
end loop
end loop
output VALUES
Choose the output yielded when the above algorithm is correctly applied to the 2D array given below:
![Question Image](https://res.cloudinary.com/n7-education/image/upload/v1648875799/user-content/e16cad33-955d-4149-b689-a6e24fe704a9/517cf880-f7ec-47a9-8043-d9f804934784.png)
(a).
[4, 11, 18, 7]
(b).
[-1, -10, -7, 1]
(c).
[ -10, -7, -1]
(d).
[18, 5, 11]
Multiple Choice1 MarkCommunity
12 Uses59 Views1 Like