Computing Operators – Take the Quiz!

While programming with high-level languages such as Python, you will use four different types of operators as follows:

  • The assignment operator ( = ) which is used to assign a value to a variable or a constant.
  • Arithmetic operators ( +, -, *, /, MOD, DIV, ^ ) which are used to perform mathematical calculations.
  • Comparison operators ( >, <, >=, <=, ==, != ) which are used to compare values.
  • Boolean operators ( AND, OR, NOT ) which are often used to complete more than one comparison.

Did you know?


MOD is the remainder of a division. (In Python we used the symbol % instead of MOD). For instance:

    7 MOD 3 = 1

DIV is the quotient of a division. (In Python we used the symbol // instead of DIV). For instance:

    7 DIV 3 = 2

^ means “to the power of”. (In Python we used the symbol **). For instance:

    7^2 = 49

MOD, DIV and ^ are all arithmetic operators.

Take the Quiz!

Did you like this challenge?

Click on a star to rate it!

Average rating 3.3 / 5. Vote count: 33

No votes so far! Be the first to rate this post.

As you found this challenge interesting...

Follow us on social media!