pass
continue
break
assert
6
18
10
None of these
32
7
3
[0, 1, 2]
[0, 1, 2, 3]
[1, 2, 3]
[0, 2]
skip
int
bool
float
None
4.5
4.0
4
Error
What will be the output of the following Python code?
for i in range(0): print(i)
0
no output
error
none of the mentioned
What will be the output after following statements?
x = 2if x < 5: print(x)else: pass
2 3 4
1 2 3 4
2
None of These
27.2
29.0
14.9
12.3
12.5
8
9.8
9
Identifier
Expression
Syntax
Task
What is the output of following code?
x = 1y = 2z = 3print(x < y < z == True)
True
False
1
Selection
Sequential
Simple
Loop
What will the following code output?
a,b,c=3,5,6 b,c,a=a,b,c print(a,” ”,b,” ”,c)
3 5 6
6 3 5
5 6 3
6 5 3
Type Casting
Data Transformation
Type modification
Variable Shifting
(1,3)
(2,5)
(2,1)
(4,8)
What will be the output after the following statements?
a = 0b = 3while a + b < 8: a += 1 print(a, end='')
0 1 2 3 4
1 2 3 4 5 6
1 2 3 4 5
x = 'abcd'for i in range(len(x)): print(i.upper())
a b c d
0 1 2 3
What will be the output of the following pseudocode, where ^ represent XOR operation ?
Integer a, b, cset b = 4, a = 3c =a ^ bPrint c
5
check
range
Yes
No
if / else not used in python
None of the above.
>=
<=
=
!=
x = "abcdef"i = "i"while i in x: print(i, end=" ")
i i i i i i …
a b c d e f
abcdef
[10, 8, 6]
[9, 7, 5]
[6, 8, 10]
[5, 7, 9]
What will be the output of the following expression ?
print (7//2)print (-7//2)
3 -3
4 -4
3 -4
3 3
What is the output of following code
print( 5 in 515)
TypeError
ValueError
20.0
20
40.0
40
x = 'abcd'for i in range(x): print(i)
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
Infinite
NULL
What will be the output of the following Python code snippet?
x = 'abcd' for i in range(len(x)): x = 'a' print(x)
a
abcd abcd abcd
a a a a
What is the output of the following ?
print(int())
Any Random Number
//
/
%
*
4.0 + float(3)
5.3 + 6.3
5.0 + 3
3 + 7
unichr (x)
oct (x)
chr(x)
None of the these
What will be the value of the following Python expression?
print(float(4+int(2.39)%2))
5.0
15
150
200
from math import*print(floor(3.7))
3.0
for
while
if
What will be the output of the following Python statement?
print(chr(ord('b')+1))
b
c
A
x = 'abcd' for i in range(len(x)): print(x) x = 'a'
abcd abcd abcd abcd
sqrt
rhombus
add
Sub
8.0
abc=2,00,000
a,b,c=200,300,400
a_b_c= 2,00,000
abc=200 300 400
find the output of following code:
import mathprint(math.fabs(-3.4))
-3.4
3.4
4.3
+5
-11
+11
-5