.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Interview Question >> .NET Framework >> Post New Question Subscribe to Interview Questions

How to select the top n numbers from an IList using lambda expressions?

Posted By :Jean Paul     Posted Date :May 05, 2011    Points :40   Category :.NET Framework 
Use Take() extension method.

You can also find related Interview Question to How to select the top n numbers from an IList using lambda expressions?  below: 

What is lambda expressions

  
A lambda expression is an unnamed method written in place of delegate instance.It has th following form

(Parameter => expression or state,ent block.
eg: y=>x*x;
(More...)

How to find the index of element using Where() with Lambda Expressions?

  
Use the two argumented Lambda method

Where((i, ix) => i == ix); (More...)

Select Syntax

  
SELECT "COLUMN_NAME" FROM "TABLE_NAME" (More...)

Write and justify output of - select nullif('test','test')

  
The output will be - NULL
Justification : nullif returns NULl if given two arguments are same else returns the first specified argument. So, for the given SQL, output will be NULL. (More...)

What is the namespace used for regular expressions?

  
System.Text.RegularExpressions namespace (More...)

Difference between Set and Select keyword in sql server?

  
Set:

1.Set is a ANSI standard for variable assignment.
2.We can assign only one variable at a time
3.When assigning from a query that returns more than one value, SET will fail with an error.

Select:

1.Select is a Non-ANSI standard when assigning variables.
2.We can assign multiple variable at a time
3.When assigning from a query that returns more than one value, SELECT will assign the last value returned by the query and hide the fact that the query returned (More...)

In Analysis service what is the technology used define the expressions?

  
Multidimensional Expressions also abbrevated as MDX (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

 
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.


Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend