Question-19: Can you please map them

Priority-1: + and – (Unary Operator)

Priority-2 : ** (Exponential)

Priority-3 :  *, /, //, %

Priority-4 : + and – (Binary Operator)

 

Answer:

  • Priority-1: + and – (Unary Operator)
  • Priority-2 : ** (Exponential)
  • Priority-3 : *, /, //, %
  • Priority-4 : + and – (Binary Operator)

Exp:

  • As you can remember, multiplication has higher priority than addition.
  • You should always consider operator binding, when there are same precedence operators.
  • Priority-1: + and – (Unary Operator)
  • Priority-2 : ** (Exponential)
  • Priority-3 : *, /, //, %
  • Priority-4 : + and – (Binary Operator)

Why Dont you prepare for Python Certifications and Interview Questions with 250+ Questions and Answer : Check Here

Real Exam Number of Questions: 70 Questions
Real Exam Pass Score: 70%
Time Allotted: 90 minutes to complete exam