Q34.What will be the value of `mList` at the end of the given pseudocode?
```
L = [[1, 100, 'A'], [2, 99, 'B'], [3, 98, 'C'], [4, 97, 'D'], [5, 96, 'E']]
mList = []
foreach element in L {
z = DoSomething(element)
mList = mList ++ [z]
}
Procedure DoSomething(X)
a = rest(X)
return(first(a))
End DoSomething
```
Save
Check
Details
Q34
6 Aug 2023
Q34.What will be the value of `mList` at the end of the given pseudocode?
```
L = [[1, 100, 'A'], [2, 99, 'B'], [3, 98, 'C'], [4, 97, 'D'], [5, 96, 'E']]
mList = []
foreach element in L {
z = DoSomething(element)
mList = mList ++ [z]
}
Procedure DoSomething(X)
a = rest(X)
return(first(a))
End DoSomething
```