Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

LAMBDA Functions

Total questions: 7

Worksheet time: 9mins

Name
Class
Date
1.

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)

a. True

b)

b. False

2.

2. Which of the following statements about

Python Lambda functions are true? Select all that apply:

a)

a. Lambda functions are used with functional programming.

b)

b. Lambda functions can be useful as quick, throwaway, single line functions.

c)

c. Lambda Functions are useful as input to other functions

d)

d. All of the above.

3.
a)

a. 10

b)

b. 10.0

c)

c. num

d)

d. SyntaxError, return is invalid

4.

4. What are the common functional programming functions

that use lambdas? Select all that apply:

a)

a. filter()

b)

b. map()

c)

c. reduce()

d)

d. lookup()

5.
a)

a. Syntax error, lambda functions cannot contain the named key parameter

b)

b. No output, exception will be raised on middle line

c)
d)
e)
6.

6. What did you like most about this training session? All feedback welcome.

4 lines
7.

7. To receive a copy of the guide, please enter your personal internet email below.

4 lines