What does the following lambda expression represent: `x -> x % 2 == 0`?

  1. Checks if a number is odd
  2. Checks if a number is even
  3. Always returns true
  4. Returns the same number
Correct answer Checks if a number is even

Explanation

This lambda checks whether a number is even.

Update: Admin added a tag on this question

Topics

By Admin · · 31 views