Q12Multiple correct5 Marks1 Sep 2024
Consider the procedure given below, where aList is a non-empty list of positive numbers. At the end of the execution, which of the following option(s) would be correct? It is a Multiple Select Question (MSQ).
```
procedure cumulative(aList)
sum = 0, cumuList = []
foreach element in aList{
sum = sum + element
cumuList = cumuList ++ [sum]
}
return(cumuList)
end cumulative
```