What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 22445 |  Welcome, Guest!   Register  Login
 Home > Interview Questions > ASP.NET Interview Questions > What is the difference between the Take ...

What is the difference between the Take and Skip clauses?

Interview question and answer by: Tripati_tutu | Posted on: 1/28/2011 | Category: ASP.NET Interview questions | Views: 965 | | Points: 40


Answer:

The Take clause returns a specified number of elements. For example, you can use the Take clause to return two values from an array of numbers.

The Skip clause skips the specified number of elements in the query and returns the rest. For example, you can use the Skip clause to skip the first four things in an array of strings and returns the remaining array of string.

Asked In: Many Interviews | Alert Moderator 
Found interesting? Add this to:


>> Write Response - Respond to this post and get points

Even more ... | Submit Interview Questions and win prizes!

More Interview Questions from Tripati_tutu

Even more ... | Submit Interview Questions and win prizes!


About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/21/2013 10:54:15 PM