Bird
Raised Fist0

What keyword is used in LINQ query syntax to specify the data source?

easy🧠 Conceptual Q1 of Q15
C Sharp (C#) - LINQ Fundamentals
What keyword is used in LINQ query syntax to specify the data source?
Aselect
Bwhere
Cfrom
Dgroup
Step-by-Step Solution
Solution:
  1. Step 1: Identify the starting point of a LINQ query

    LINQ queries start by specifying the data source using the keyword 'from'.
  2. Step 2: Understand the role of 'from'

    The 'from' keyword declares the range variable and the collection to query.
  3. Final Answer:

    The keyword 'from' is used to specify the data source in LINQ queries. -> Option C
  4. Quick Check:

    LINQ data source keyword = from [OK]
Quick Trick: LINQ queries always start with 'from' keyword [OK]
Common Mistakes:
MISTAKES
  • Using 'select' instead of 'from' to start query
  • Confusing 'where' with data source declaration

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More C Sharp (C#) Quizzes