Question 1
Consider the procedure given below.
1 Procedure eliminate(L1, L2) 2 L3 = [], Found = False 3 foreach i in L1{ 4 foreach j in L2{ 5 if(i == j){ 6 Found == True 7 } 8 } 9 if(not Found){10 L3 = L3 ++ [i]11 }12 Found = False13 }14 return(L3)15 End eliminateIf L1 and L2 are two lists, and L = eliminate(L1, L2), choose the correct option.
L contains all the elements of L2 that are not present in L1
L contains all the elements of L1 that are not present in L2
L contains all the elements common to L1 and L2
L contains the unique elements present in L1 or L2
