Bird
0
0

Which of the following is the correct syntax to filter rows where Age is greater than 30?

easy📝 Syntax Q12 of 15
C Sharp (C#) - LINQ Fundamentals

Which of the following is the correct syntax to filter rows where Age is greater than 30?

SELECT * FROM Users WHERE ___;
AAge > 30
BAge = > 30
CAge >> 30
DAge >= 30
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct comparison operator

    The operator for 'greater than' is >, so 'Age > 30' is correct.
  2. Step 2: Check other options for syntax errors

    'Age = > 30' and 'Age >> 30' are invalid syntax. 'Age >= 30' means 'greater or equal', not strictly greater.
  3. Final Answer:

    Age > 30 -> Option A
  4. Quick Check:

    Use > for greater than [OK]
Quick Trick: Use > for greater than, >= for greater or equal [OK]
Common Mistakes:
MISTAKES
  • Using = > instead of >
  • Using >> which is invalid
  • Confusing > with >= operator

Want More Practice?

15+ quiz questions · All difficulty levels · Free

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