What is the output of the following program :
y = 8z = lambda x : x * y print z(6) |
chevron_right
filter_none
(A) 48
(B) 14
(C) 64
(D) None of the above
Answer: (A)
Explanation: lambdas are concise functions and thus, result = 6 * 8
Quiz of this Question
Please comment below if you find anything wrong in the above post
Recommended Posts:
- Python | Functions | Question 1
- Python | Functions | Question 2
- Python | Functions | Question 3
- Python | Functions | Question 5
- Python | Functions | Question 6
- Python | Functions | Question 7
- Python-Quizzes | Functions | Question 8
- Python-Quizzes | Functions | Question 9
- Python lambda (Anonymous Functions) | filter, map, reduce
- Python | startswith() and endswith() functions
- Functions in Python
- Python Inner Functions
- Python User defined functions
- Higher Order Functions in Python
- Python - Invoking Functions with and without Parentheses
- Why and how are Python functions hashable?
- C | Functions | Question 11
- C | Functions | Question 2
- C | Functions | Question 3
- C | Functions | Question 4

