Certified Associate in Python Programming (PCAP-31-03) — Question 38
What is true about lambda functions? (Choose two.)
Answer options
- A. they are called anonymous functions
- B. they cannot return the None value as a result
- C. they must contain the return keyword
- D. they must have a non-zero number of parameters
Correct answer: A, D
Explanation
Option A is correct because lambda functions are indeed referred to as anonymous functions due to their lack of a named identifier. Option D is also correct as lambda functions must take at least one parameter; the other options are incorrect because lambda functions can return None, do not require a return keyword, and can have zero or more parameters.