What will be the output after the following statements?
a = 0 b = 3 while a + b < 8: a += 1 print(a, end='')
0 1 2 3 4
1 2 3 4 5 6
1 2 3 4 5
None of these
What will be the output of the following expression ?
x =4 print(x<<2)
4
16
6
2
What will be the output after following statements?
x = 2 if x < 5: print(x) else: pass
2 3 4
1 2 3 4
None of These
12.6
'12.6'
12
Syntax Error
What will be the output of the following Python code?
from math import* print(floor(3.7))
3
3.0
print (7//2) print (-7//2)
3 -3
4 -4
3 -4
3 3
break
pass
continue
32
64
What value does the following expression evaluate to ?
x = 5 while x < 10: print(x, end='')
Closed loop
one time loop
Infinite loop
Evergreen loop
What is the output of the following ?
print(int())
Any Random Number
0
1
Error
What does the following code print ?
if 2 + 5 == 8: print("TRUE") else: print("FALSE") print("TRUE")
TRUE
TRUE FALSE
TRUE TRUE
FALSE TRUE
print(5 + 8 * ((3*5)-9)/10)
9.0
9.8
10
10.0
What is the output of following Python code?
>>print(5*(2//3))
3.3
error
What will be the output of the following python code?
from math import * floor(11.7)
11
11.0
none of these
Compiler
Interpreter
Assembler
What will be the output of the following expression
x=14 print(x>>2)
14
What is the output of the following?
m=0 while m<5: m+=1 if m==3: break else: print(0)
0 1 2 0
0 1 2
0 0 1 0 2
k^1
k**1
k^ ^1
k^*1
//
?
<
and
n=5 while n>0: n-=1 if n==2: continue print(n,end=' ')
5 4 3 1 0
4 3 1 0
4 3 2