WorksheetsPython Operator Precedence
Total questions: 9
Worksheet time: 5mins
The value of variable bmi would be
26.23
94.4
2229.7
For the given values of variables
- qual
- exp
- Will the text "Qualified for the job" be printed or not ?
Yes
No
A teenager is one whose age is in between 13 and 19.
Which of the following statements correctly capture the condition.
if age >=13 and age <=19 :
print ( "teenager")
if age >13 and age <19 :
print ( "teenager")
if age >=13 && age <=19 :
print ( "teenager")
if age >13 && age <19 :
print ( "teenager")
13 // 5
The result of the above code expression will be
2
3
2.6
13 % 5
The result of the above code expression will be
3
2
2.6
2 ** (2 + 3 )
The result of the above code expression will be
32
8
10
True and False
The result of the above code expression will be
False
True
Syntax error
True or False
The result of the above code expression will be
True
False
Syntax error
x = 3
Which of the following expression evaluates to True
x == 3
not x == 3
not not x == 3
x != 3
not x != 3
