Buy Questpond's video subscriptions on
huge discount
.
Online: 2668
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Interviews
>
C#
>
Loading ...
What will be the output of the below code segment?
class Program
{
static void Main(string[] args)
{
new List<string>() { "apple", "tomato", "grapes", "potato" }
.Intersect(new List<string>() { "apple", "mango", "grapes", "sky" })
.ToList()
.ForEach(i => Console.Write(i+" "));
Console.ReadKey(true);
}
}
Posted by
Rajnilari2015
on 10/24/2015 | Category:
C# Interview questions
| Views: 2901 |
Points: 40
Post
|
Interview FAQs
|
Exclusive Questions
|
Interview Home
Select from following answers:
tomato potato
apple grapes
mango sky
apple grapes mango sky
All Above
The Intersect method will return the common elements present in both the sets.
Show Correct Answer
Asked In:
Many Interviews |
Alert Moderator
Bookmark It
< Previous :
What will be the output of the below code segment? ...
Next > :
What will be the output of the below code segment? ...
Comments or Responses
Login to post response
More Interview Questions by Rajnilari2015
What will be the output of the below code segment? class Program ...
What will be the output of the below code segment? class Program ...
What will be the output of the below code segment? class Program ...
What will be the output of Declare @str Varchar(1000) = 'http: ...
What will be the output of SQL> Select 2 Compose('A' ...
What is true about Percentile_Cont function?
Suppose we have a set with 39 elements. We need to find the relative r ...
Suppose we have a set with 35 elements. We need to find the cumulative ...
Latest Interview Questions
Which of the following is a server-scoped securable?
The Clients table includes the following columns ClientId Spouse Ki ...
You would include a HAVING clause in a query to
How can you prevent user to enter duplicate value into column while cr ...
What is AngularJS?
What is the role of implementation phase in STLC(Software Testing Life ...
What is test plan ?
What is test planning?
More ...