31. What will be the output of the following Python code snippet?
['hello', 'morning'][bool('')]
['hello', 'morning'][bool('')]
32. What will be the output of the following Python code?
if (9 < 0) and (0 < -9):
print("hello")
elif (9 > 0) or False:
print("good")
else:
print("bad")
if (9 < 0) and (0 < -9):
print("hello")
elif (9 > 0) or False:
print("good")
else:
print("bad")
33. What will be the output of the following Python expression?
4^12
4^12
34. Which of the following expressions can be used to multiply a given number 'a' by 4?
35. What is the result of (10 >> 1) & 3 ?
36. What will be the output of the following Python code snippet?
bool(‘False’)
bool()
bool(‘False’)
bool()
37. What is the result of 7 ^ 7 ?
38. What will be the output of the following Python code if a=10 and b =20?
a=10
b=20
a=a^b
b=a^b
a=a^b
print(a,b)
a=10
b=20
a=a^b
b=a^b
a=a^b
print(a,b)