WorksheetsPython One Mark
Total questions: 10
Worksheet time: 5mins
Name
Class
Date
1.
Python invented by ...................
a)
James Gosling
b)
Rasmus Lerdorf
c)
Guido van Rossum
d)
None
2.
Python extension is .................
a)
.py
b)
.python
c)
.pyt
d)
none
3.
All keywords in Python are in _________
a)
a) Capitalized
b)
b) lower case
c)
c) UPPER CASE
d)
d) None of the mentioned
4.
Which of the following is used to define a block of code in Python language?
a)
a) Indentation
b)
b) Key
c)
c) Brackets
d)
d) All of the mentioned
5.
Which of the following character is used to give single-line comments in Python?
a)
^
b)
$
c)
@
d)
#
6.
In which year was the Python language developed?
a)
1995
b)
1972
c)
1981
d)
1989
7.
which one is valid variable?
a)
5mark
b)
eng_mark
c)
tam-mark
d)
tamilmark#
8.
Give the output
a=100
print("Python")
a)
100
b)
a
c)
Python
d)
python
9.
Give the data type of variable c
c=7.5
a)
int
b)
float
c)
string
d)
none
10.
Give the output
c=37.5
f = (c * 1.8) + 32
print(f)
a)
99.5
b)
99.4
c)
99.0
d)
99.1
100 %
