*
**
<
==
or
equal
and
not
a+√b
a+√b j
a+bj
a+√j
What will be the output after the following statements?
for i in range(1,6): print(i, end='') if i == 3: break
1 2
1 2 3
1 2 3 4
1 2 3 4 5
What will be the output of the following pseudocode, where ^ represent XOR operation ?
Integer a, b, c set b = 4, a = 3 c =a ^ b Print c
4
3
5
7
Selection
Sequential
Simple
Loop
What will be the output of the following Python code?
from math import pow print(math.pow(2,3))
Nothing is printed
8
Error, method pow doesn’t exist in math module
Error, the statement should be: print(pow(2,3))
a = 0 b = 3 while a + b < 8: a += 1 print(a, end='')
0 1 2 3 4
1 2 3 4 5 6
None of these
What will be the output of the following expression ?
x =4 print(x<<2)
16
6
2
What will be the output after following statements?
x = 2 if x < 5: print(x) else: pass
2 3 4
None of These
12.6
'12.6'
12
Syntax Error
from math import* print(floor(3.7))
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