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

  • (A) Checks if a number is odd
  • (B) Checks if a number is even
  • (C) Always returns true
  • (D) Returns the same number
πŸ’¬ Discuss
βœ… Correct Answer: (B) Checks if a number is even
Explanation: This lambda checks whether a number is even.
Explanation by: Mr. Dubey
This lambda checks whether a number is even.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
63
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
98%
Success Rate