Buy Questpond's video subscriptions on
huge discount
.
Online: 1196
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 program?
using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Console.Write(new List<int>() { 16, 17, 4, 3, 5, 2, 10 }
.OrderBy(o => o)
.SkipWhile(s => s < 2)
.TakeWhile(t => t <= 10)
.ToList()
.Aggregate((a, b) => a + b));
}
}
}
Posted by
Rajnilari2015
on 10/12/2016 | Category:
C# Interview questions
| Views: 5800 |
Points: 40
Post
|
Interview FAQs
|
Exclusive Questions
|
Interview Home
Select from following answers:
24
42
12
21
All Above
The program is finding the elements within the given a range 2,10 exclusive which are 2,3,4,5,10. Then performing a summation on these numbers which is 24.
Show Correct Answer
|
Alert Moderator
Bookmark It
< Previous :
Which of the following is not true about VB.NET?
Next > :
What is ServiceDefinition.csdef file?
Comments or Responses
Login to post response
More Interview Questions by Rajnilari2015
What is ServiceDefinition.csdef file?
What is ServiceConfiguration.Local.cscfg file?
What is ServiceConfiguration.Cloud.cscfg file?
In simple way explain Web roles and Worker roles.
What is Windows Azure?
What is X-SourceFiles?
What is Transfer-Encoding?
What is the purpose of AddSingleton method?
Latest Interview Questions
Types of Memory in .NET?
Age of Session Cookies?
Which is not List the major built-in objects in ASP.NET?
Which type if caching will be used if we want to cache the portion of ...
What are the different Session state management options available in A ...
Which of the following statements is correct about a delegate?
To implement delegates, the necessary condition is?
The 'ref' Keyword in which of the following method/function?
More ...