WorksheetsLAMBDA Functions
Total questions: 7
Worksheet time: 9mins
1. True of False: When increased readability or elimination of complexity are important, then normal predefined python functions may be of more value than corresponding Lambda ones.
a. True
b. False
2. Which of the following statements about
Python Lambda functions are true? Select all that apply:
a. Lambda functions are used with functional programming.
b. Lambda functions can be useful as quick, throwaway, single line functions.
c. Lambda Functions are useful as input to other functions
d. All of the above.
a. 10
b. 10.0
c. num
d. SyntaxError, return is invalid
4. What are the common functional programming functions
that use lambdas? Select all that apply:
a. filter()
b. map()
c. reduce()
d. lookup()
a. Syntax error, lambda functions cannot contain the named key parameter
b. No output, exception will be raised on middle line
6. What did you like most about this training session? All feedback welcome.
7. To receive a copy of the guide, please enter your personal internet email below.
