1
8
True
False
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
none of these
55
60
555
Error
32
7
10
3
Int
Float
int or float
None of these
>=
<=
=
!=
#
/
&
What will the following code output?
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
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
a=b=c=1
a,b,c=1
a, b, c = 1, "python", 1.5
None of the above
a=5;b=7 b=a print(a,” ”,b)
5 7
7 5
5 5
7 7
5.5
3.5
//
?
<
and
6
a=5 a*=10 print(a)
5
50
4
16
100
-100
-101
101
211
216
1024
512
or
equal
not
Compiler
Interpreter
Assembler
0
infinite
ZeroDivisionError
k^1
k**1
k^ ^1
k^*1
20.0
20
40.0
40
27.2
29.0
14.9
12.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
|
^
!
What will be the output of the following expression ?
x =4print(x<<2)
2
abc=2,00,000
a,b,c=200,300,400
a_b_c= 2,00,000
abc=200 300 400
a=b,b=a
a,b=b,a
a=b;b=a
a=b and b=a
A*A=8
A*=8
A*8=A
A=*8
%
||