A

Admin • 832.52K Points
Coach

Q. What will be the output of the following program on execution?

Code:
a=0

b=5

x=(a&b)|(a&a)|(a|b)

print("x")
  • (A) 0
  • (B) 1
  • (C) 5
  • (D) None of these
  • Correct Answer - Option(D)
  • Views: 22
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

print("x"), Here the x is string so the output of the given python code is x.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.