NEW
Font size
WorksheetsPython Level1
Total questions: 11
Worksheet time: 6mins
Who developed the Python language?
Zim Den
Guido van Rossum
Niene Stom
Wick van Rossum
Which one of the following is the correct extension of the Python file?
.py
.python
.p
None of these
What do we use to define a block of code in Python language?
Key
Brackets
Indentation
None of these
Which character is used in Python to make a single line comment?
/
//
#
!
Which of the following declarations is incorrect?
_x = 2
__x = 3
__xyz__ = 5
None of these
Which of the following operators is the correct option for power(ab)?
a ^ b
a**b
a ^ ^ b
a ^ * b
Study the following function:
import math
print(math.sqrt(36))
What will be the output of this code?
Error
-6
6
6.0
Which of the following option is not a core data type in the python language?
Dictionary
Lists
Class
All of the above
What happens when '2' == 2 is executed?
False
Ture
ValueError occurs
TypeError occurs
Study the following statement
z = {"x":0, "y":1}
Which of the following is the correct statement?
x dictionary z is created
x and y are the keys of dictionary z
0 and 1 are the values of dictionary z
All of the above
Study the following program:
i = 2, 10
j = 3, 5
add = i + j
print(add)
What will be the output of this program?
(5, 10)
20
(2, 10, 3, 5)
SyntaxError: invalid syntax
