What will be the output of the following expression ?
x =4print(x<<2)
4
16
6
2
or
equal
and
not
a=b=c=1
a,b,c=1
a, b, c = 1, "python", 1.5
None of the above
#
=
/
&
0
1
10
1.0
What will be the output of the following pseudocode, where ^ represent XOR operation ?
Integer a, b, cset b = 4, a = 3c =a ^ bPrint c
3
5
7
|
^
!
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
abc=2,00,000
a,b,c=200,300,400
a_b_c= 2,00,000
abc=200 300 400
a=5 a*=10 print(a)
50
Error
Compiler
Interpreter
Assembler
None of these
8
True
False
32
a=5;b=7 b=a print(a,” ”,b)
5 7
7 5
5 5
7 7
100
-100
-101
101
>=
<=
!=
a=b,b=a
a,b=b,a
a=b;b=a
a=b and b=a
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
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*A=8
A*=8
A*8=A
A=*8
What will be the output of the following Python code snippet?
print(not(3>4))print(not(1&1))
True True
True False
False True
False False