Q. Can lambda expressions contain loops?

  • (A) No
  • (B) Yes, in the body if braces are used
  • (C) Only while loops
  • (D) Only for-each loops
πŸ’¬ Discuss
βœ… Correct Answer: (B) Yes, in the body if braces are used
Explanation: Lambdas can include loops if the body is defined within braces `{}`.
Explanation by: Mr. Dubey
Lambdas can include loops if the body is defined within braces `{}`.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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