Q5Multiple correct6 Marks6 May 2026
Consider the following procedure, where L1 and L2 are two non-empty lists.
```
Procedure CompareLists(L1, L2)
if(length(L1) != length(L2)){
return(False)
}
while(length(L1) > 0){
if(first(L1) != last(L2)){
return(False)
}
L1 = rest(L1)
L2 = init(L2)
}
return(True)
End CompareLists
```
Choose the correct option(s).