NEW
Font size
WorksheetsPYTHON REVISION
Total questions: 20
Worksheet time: 10mins
Who is the founder of Python Programming Language?
Rasmus Ganilo
Dennis Ritchie
Guido van Rossum
James Gosling
File extension of Python program is ______
.py
.p
.pyx
.pyy
List index begins with _________.
0
1
-1
-2
Which method adds element at the end of the List?
add()
append()
new()
insert()
_________________is an anonymous function.
User Defined
Default
Lambda
Reserved
____________ is a collection which is unordered, changable and indexed.
Dictionary
List
Tuple
Set
Python 3.7 was released on
June 2016
June 2017
June 2018
June 2019
IN and NOT IN are membership operators.
TRUE
FALSE
IS is an Identity Operator.
True
False
List = [2.3, 4.445, 3, 5.33, 1.054, 2.5]
print(List.pop()) What willbe the answer?
2.3
2.5
1.054
4.445
What will be the anser for this code?
120
650
225
400
In Python_____________ are written with round brackets
tuples
dictionary
list
set
a=(1,2,3,2,4,5,2)
a.count(2)
What will be the answer?
2
1
3
4
Keys and Values are related to ________
tuple
dictionary
list
set
The def keyword, along with the function name is used to define the __________
file
block
function
variable
_______is used as a dummy place holder whenever a syntactical requirement of a certain programming element is to be fulfilled without assigning any operation
Pass
Break
While
Goto
What will be the Output?
1
2
3
4
List = [1, 2, 3, 1, 2, 1, 2, 3, 2, 1]
print(List.count(1))
What will be the output?
1
2
3
4
x = lambda a, b : a * b
print(x(5, 8))
What will be the output?
35
13
40
45
____________does not hold duplicate values and is unordered.
Set
Tuple
Dictionary
List
