How Much Know Linq ?

7 Questions | Total Attempts: 248

SettingsSettingsSettings
Please wait...
Linq Quizzes & Trivia

In the course of study of data and data transmission through the internet, you will come across linq and related features and which the quiz below is testing on. The questions are few and short ended making them simple.


Questions and Answers
  • 1. 
    Lambda Expression gets converted to Expression tree when underlying collection is based on?
    • A. 

      IEnumerable

    • B. 

      IQueryable

    • C. 

      Answer option 3

    • D. 

      Answer option 4

  • 2. 
    Which of the following operator will cause immediate execution?
    • A. 

      ToArray()

    • B. 

      ToList()

    • C. 

      First()

    • D. 

      Cast()

  • 3. 
    Which one of the following operator will cause Deferred streaming execution
    • A. 

      Except

    • B. 

      First

    • C. 

      ToList

    • D. 

      GroupBy

  • 4. 
    When var keyword is used and when it is the only way to get query result
    • A. 

      When returning complex type

    • B. 

      When returning anonymous function

    • C. 

      When returning anonymous type

    • D. 

      Answer option 4

  • 5. 
    Expression Trees represents your code in the form of?
    • A. 

      List Data

    • B. 

      Tree Data

    • C. 

      Stack Data

    • D. 

      Queue Data

  • 6. 
    1. What all from below uses IQuerable<T> implementation?
    • A. 

      Linq to Objects

    • B. 

      Linq to SQL

    • C. 

      Linq To XML

    • D. 

      Linq to DataSet

  • 7. 
    1. Which one is the right Implementation of where Function used with IQueryable interface?
    • A. 

      Public static IQueryable Where (this IQueryable source, Expression predicate)

    • B. 

      Public static IQueryable Where ( Expression predicate)

    • C. 

      Public static IQueryable Where (this IQueryable source, Func predicate)

    • D. 

      Public static IQueryable Where (this IQueryable source, Expression predicate)

Back to Top Back to top