Python Operators

1.What is the result of 5 % 2?
  • A. 2
  • B. 2.5
  • C. 1
  • D. 0

1

1

2.What is the output of print(2**3)?
  • A. 6
  • B. 9
  • C. 8
  • D. 16

8

8

3.Which operator is used for string concatenation?
  • A. &
  • B. +
  • C. .
  • D. concat

+

+

4. What does is operator compare?
  • A. Values
  • B. Types
  • C. Object identity
  • D. Memory usage

Object identity

Object identity