Python Operators Questions and Answers

Take Exam

Python Programming - Operators Questions with Answers teach how to perform operations on data effectively. These Python Operators Questions are important for Infosys, Wipro, and SSC exams testing logical and arithmetic concepts

Python Operators

Showing 10 of 26 questions

1. What is the output of 5 ** 2 in Python?

  • 10
  • 25
  • 7
  • Error
Show Answer Report

2. Which operator is used for floor division in Python?

  • /
  • //
  • %
  • |
Show Answer Report

3. What does the % operator do in Python?

  • Percentage
  • Division
  • Modulus (remainder)
  • Multiplication
Show Answer Report

4. What is the result of 10 // 3?

  • 3.333
  • 3
  • 4
  • 1
Show Answer Report

5. Which operator has the highest precedence in Python?

  • ** (Exponentiation)
  • * (Multiplication)
  • () (Parentheses)
  • + (Addition)
Show Answer Report

6. What is the output of "hello" * 3?

  • hello3
  • hellohellohello
  • Error
  • hello hello hello
Show Answer Report

7. Which operator is used for identity comparison?

  • ==
  • =
  • is
  • ===
Show Answer Report

8. What is the result of 15 % 4?

  • 3.75
  • 3
  • 4
  • 1
Show Answer Report

9. Which operator performs bitwise AND operation?

  • &&
  • and
  • &
  • |
Show Answer Report

10. What does the += operator do?

  • Addition only
  • Assignment only
  • Addition and assignment
  • Equality check
Show Answer Report
Questions and Answers for Competitive Exams Various Entrance Test