WorksheetsPython Functions
Total questions: 15
Worksheet time: 5mins
A named blocks of code that are designed to do one specific job is called as________
Loop
Function
Block
Branching
A Function which calls itself is called as (a)
While defining a function which of the
following symbol is used.
;(semi colon)
.(dot)
$(dollar)
:(colon)
Which function is called anonymous function?
Lambda
Recursion
Function
Define
Which keyword to be used to define a function in Python?
def
Local
Rec
Global
Which of the following is used, if you don’t need to type all the python code for the same task again and again?
Statement
Scope
Control Structure
Function
How many types of scopes in Python?
1
3
2
4
pow (5, 2) is equivalent to_______
5 * 2
5 * * 2
2 * * 5
2 * 5
How many types of functions are there in
python?
2
4
5
6
print (ord(‘A’) displays____
65
A
a
97
The default presidium of fixed point constant is______
7
6
8
16
Choose odd man out:
User Defined
Built-in
Parameters
Recursion
A_____ variable declared inside the function’s body is known as
File scope
Global scope
Local scope
Function scope
A block within a block is called ________block.
Nested
Control
Compressed
Called
The _____ function is inverse of ord () function.
Id()
Chr()
Bin()
None of these
