NEW
Font size
S
M
L
XL
WorksheetsPython- Operators
Total questions: 10
Worksheet time: 50secs
Name
Class
Date
1.
Which symbol is used to print more than one item on a single line?
a)
$
b)
:
c)
,
d)
;
2.
Which operator is known as ternary operator in python?
a)
Assignment
b)
Conditional
c)
Relational
d)
Comparative
3.
If p=25 , what is p**2?
a)
50
b)
125
c)
600
d)
625
4.
c=35 if 34<43 else 43
a)
34
b)
43
c)
35
d)
1
5.
Who developed python?
a)
Ritchie
b)
Bill gates
c)
Guido van Rossum
d)
Sunder
6.
Which character is used to denote long integer?
a)
D
b)
N
c)
LO
d)
L
7.
In Python script editor, the errors will be shown in ----- color in the IDLE window?
a)
green
b)
black
c)
red
d)
orange
8.
Which is known as simple assignment operator?
a)
==
b)
=
c)
+=
d)
#
9.
Python uses ------ to define program blocks.
a)
whitespace
b)
delimiter
c)
escape sequence
d)
curly braces
10.
Which function accepts all data as string or characters but not as numbers?
a)
int()
b)
output()
c)
input()
d)
print()
Reset
