Q. Which of the following is a correct lambda expression with no parameters that returns 100?

  • (A) () -> 100
  • (B) (x) -> 100
  • (C) x -> 100
  • (D) () => 100
πŸ’¬ Discuss
βœ… Correct Answer: (A) () -> 100
Explanation: The syntax `() -> 100` defines a lambda with no parameters returning 100.
Explanation by: Mr. Dubey
The syntax `() -> 100` defines a lambda with no parameters returning 100.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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