Q26Comprehension3 Marks7 Aug 2022
Passage
Consider the procedure evaluate given below, where P and Q are the lists of same length. If L1 = [-2, 0, 4, 3] and L2 = [0, 2, 3, 5] then answer the given subquestions.
```
Procedure evaluate(P, Q)
if(P == []){
return([])
}
else{
c = first(P) * first(Q)
return([c] ++ evaluate(rest(P), rest(Q)))
}
End evaluate
```
What will evaluate(L1, L2) return?