What will be the result of the following call to the Linq method Except? var a= new [] {1, 2, 2, 3, 4}; var b= new [] {3, 4}; var result = a.Except(b);

Back to Questions
A)

1 and 2

B)

1,2,2

C)

3,4

D)

1,2,2,3,4

 

Author Explanation :

The Except method removes duplicate elements in c#

Answers Posted

PostedBy By: prakash.shrestha@inspopindia.com, at 04:15 AM on 16-July-2019

Answer Posted: B

Explanation: It will give every character that does not exist in variable b.

Result: Wrong Answer

PostedBy By: sunkara ganesh, at 09:19 AM on 31-March-2019

Answer Posted:

Explanation: except keyword takes unmathced elements from left side table

Result: Wrong Answer

PostedBy By: luffy_monkey, at 01:18 PM on 29-March-2019

Answer Posted: A

Explanation: h

Result: Correct

PostedBy By: luffy_monkey, at 01:09 PM on 29-March-2019

Answer Posted:

Explanation: I think this is correct

Result: Wrong Answer

PostedBy By: Deepika, at 10:34 AM on 29-March-2019

Answer Posted:

Explanation: Except 3 and 4

Result: Wrong Answer

PostedBy By: Rajiv Kr. Thakur, at 04:31 AM on 29-March-2019

Answer Posted: A

Explanation: Except means not in set 'b' so remaining elements of 'a'

Result: Correct

PostedBy By: Rajiv Kr. Thakur, at 04:31 AM on 29-March-2019

Answer Posted: A

Explanation: Except means not in set 'b' so remaining elements of 'a'

Result: Correct

PostedBy By: Sagar , at 04:15 AM on 29-March-2019

Answer Posted: A

Explanation: Except don't return duplicate

Result: Correct

PostedBy By: Abdul Samad Qureshi, at 02:50 PM on 27-March-2019

Answer Posted:

Explanation: It should excluded the elements of array specified

Result: Wrong Answer

PostedBy By: Admin, at 10:51 AM on 25-March-2019

Answer Posted:

Explanation: B

Result: Correct

PostedBy By: Admin, at 05:20 AM on 25-March-2019

Answer Posted:

Explanation: b

Result: Correct

PostedBy By: Shyam Prakash Pemmaraju, at 05:18 AM on 25-March-2019

Answer Posted:

Explanation: i think option A

Result: Correct

PostedBy By: Shyam Prakash Pemmaraju, at 05:16 AM on 25-March-2019

Answer Posted:

Explanation: i think option A

Result: Correct

PostedBy By: subbu. kurapati, at 01:41 PM on 21-March-2019

Answer Posted:

Explanation: Except ----> It indicates elements(1,2,2) present in first array only but not in second array.

Result: Correct

Back to Questions

© Copyright 1997 - 2019 | www.bestdotnettraining.com | www.deccansoft.com | All Rights Reserved.
 
Bestdotnet google plus
Enquiry Now



Input symbols