Python supports the creation of anonymous functions at runtime, using a construct called . . . . . . . .
A. pi
B. anonymous
C. lambda
D. none of the mentioned
Answer: Option C
Solution (By Examveda Team)
In Python, the creation of anonymous functions at runtime is supported using a construct called lambda.The lambda keyword in Python is used to define anonymous functions, also known as lambda functions. Lambda functions are small, inline functions that can have any number of parameters but can only have one expression. They are often used for short, one-off operations where defining a named function would be overkill. Lambda functions are particularly useful when passing functions as arguments to higher-order functions like map(), filter(), and reduce().
Related Questions on Introduction to Python
What is Python primarily used for?
A. Web browsing
B. Data analysis
C. Video editing
D. Game development
Who developed Python Programming Language?
A. Wick van Rossum
B. Rasmus Lerdorf
C. Guido van Rossum
D. Niene Stom
Which of the following is an advantage of Python?
A. It compiles to machine code
B. It enforces strict typing
C. It has a large standard library
D. It requires extensive memory management
What is the role of the Python interpreter?
A. To convert Python code to assembly language
B. To manage memory allocation
C. To execute Python code line by line
D. To compile Python code into bytecode

Join The Discussion