for
While
do-while
None of these
Int
Float
int or float
What will be the output of the following Python code?
for i in range(5): if i == 5: break else: print(i)else: print("Here")
0 1 2 3 4 Here
0 1 2 3 4 5 Here
0 1 2 3 4
1 2 3 4 5
Break stops the execution of entire program
Break halts the execution and forces the control out of the loop
Break forces the control out of the loop and starts the execution of next iteration
Break halts the execution of the loop for certain time frame
A*A=8
A*=8
A*8=A
A=*8
Selection
Sequential
Simple
Loop
4.0 + float(3)
5.3 + 6.3
5.0 + 3
3 + 7
12.5
8
9.8
9
; (semicolon)
,(Comma)
: (colan)
True
False
1
Error
What will be the output of the following Python expression?
print(4.00/(2.0+2.0))
1.0
1.00
asc()
ord()
asci()
ascii()
*
**
<
==
range(0,5)
range(1,5)
range(1,4)
range(0,4)
while
do while
None of the above
4
4.0
8.0
What is the output of the following code?
count=0while count<3: print(count,end=" ") count+=1
0 1 2
1 2 3
0 1 2 3
[4,6]
[1, 2, 3, 4]
10
Error in Code
27.2
29.0
14.9
12.3
What will the following code output?
x=0if x: print("True")else: print("False")
None
a=5;b=7 b=a print(a,” ”,b)
5 7
7 5
5 5
7 7
a,b,c=3,5,6 b,c,a=a+1,b+2,c+3 print(a,” ”,b,” ”,c)
7 9 4
4 7 9
9 4 7
0
What value does the following expression evaluate to ?
x = 5while x < 10: print(x, end='')
Closed loop
one time loop
Infinite loop
Evergreen loop
switch
foreach
Nested Loop
30
25
20
50
11
range(0,3,1)
range(1,4,1)
range(1,3)
range(1,3,0)
+
-
( )
sqrt()
add()
rhombus()
home()
What is the output of following Python code?
>>print(5*(2//3))
3
3.3
error
55
60
555
What will be the output of the following Python statement?
print(chr(ord('b')+1))
a
b
c
A
print(chr(ord('A')+32))
B
x = "abcdef"i = "a"while i in x: print(i, end = " ")
no output
i i i i i i …
a a a a a a …
a b c d e f
4.5
[0, 1, 2]
[0, 1, 2, 3]
[1, 2, 3]
[0, 2]
Type Casting
Data Transformation
Type modification
Variable Shifting
What will be the value of the following Python expression?
print(float(4+int(2.39)%2))
5.0
5
getAscii()
get_ascii()
id(x) == id(y)
len(x) == len(y)
x == y
all of these
k^1
k**1
k^ ^1
k^*1
i = 1while True: if i%7 == 0: break print(i) i += 1
1 2 3 4 5 6
1 2 3 4 5 6 7
none of the mentioned
What will be the output of the following python code?
from math import * floor(11.7)
12
11.0
none of these
a=555 b=55 print( b in a)
TypeError
x = "abcdef"i = "i"while i in x: print(i, end=" ")
abcdef
What will be the output of following code
import mathprint(math.pi)
5.354562653589793
3.141592653589793
7.867564234556778
9.048495456553358
0.0