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!

Share Button
Posted in Computer Science, Computing Concepts, Quiz

Our Latest Book

Follow this blog