Set2 Python MCQ Questions || python mcq, python mcq questions in hindi

Result : 0/0 | | Left : 10

Find the output of the following python code-

Q1: print(12 and 0)

Q2: print(12 or 0)

Q3: a = 3
    
a += 2
    
a *= 2
    
print(a)

Q4: print(12 > 0 and 1)

Q5: print(1 and 1 or not 0)

Q6: print(1 if 0 else 0)

Q7: print("between" if 1<5<10 else "invalid")

Q8: print(27 & 23)

Q9: print(15 | 14)

Q10: print(31 << 3)

---END---


Comments