Worksheets7. PYTHON FUNCTIONS -2
Total questions: 10
Worksheet time: 5mins
1. In Python, _____________ function is a function that is defined without a name.
user-defined
anonymous
built-in
recursion
2. An anonymous function is also called a ______________ function.
recursion
built-in
user-defined
lambda
3. _________________ of a variable refers to the part of the program, where it is accessible.
score
function
Scope
none of these
4. A variable declared inside the function's body is known as a ________ variable.
local
global
register
function
5. A variable, with ____________ scope, can be used anywhere in the program.
local
global
extern
register
6. Without using the ____________ keyword we cannot modify the global variable inside the function
int
char
local
global
7. _____________ function is mostly used for creating small and one-time anonymous functions.
built-in
user-defined
Lambda
global
8. Lambda function can only access ______________ variables and variables in its parameter list.
function
local
global
register
9._______________ functions are mainly used in combination with the functions like filter(), map() and reduce().
user-defined
built-in
local
Lambda
10. ___________ statement can contain expression which gets evaluated and the value is returned.
return
break
continue
pass
