Python Operators

11.What is the output of this code?
a = 3 b = 4 print(a < 5 and b > 2)
  • A. True
  • B. False
  • C. None
  • D. Error

True

True

12.What will be printed?
print(5 % 3)
  • A. 2
  • B. 1
  • C. 0
  • D. 5

2

2

13.Output of the following:
print(not True)
  • A. True
  • B. False
  • C. None
  • D. 0

False

False

14.Output of:
print(2 ** 3)
  • A. 6
  • B. 8
  • C. 9
  • D. 16

8

8

15.Strings in Python are:
  • A. Mutable
  • B. Immutable
  • C. Numbers
  • D. None of these

Immutable

Immutable