2.1.4
Arithmetic Operators
Arithmetic Operators
Arithmetic Operators
Operators are symbols that represent a specific function within a program.
![Illustrative background for Basic operators](https://image-v2.cdn.app.senecalearning.com/2018-08/c7c2a77c-8f38-450a-a083-bbfd3f6801d4/plus-sign-add-,h_400,q_80,w_640.png)
![Illustrative background for Basic operators ?? "content](https://image-v2.cdn.app.senecalearning.com/2018-08/c7c2a77c-8f38-450a-a083-bbfd3f6801d4/plus-sign-add-,h_400,q_80,w_640.png)
Basic operators
Basic operators
- Addition is done using a + sign.
- Subtraction is done using a - sign.
- Division is done using a / sign.
- Multiplication is done using a * sign.
- Exponentiation is done using a ^ or ** sign.
![Illustrative background for Modulo operator](https://image-v2.cdn.app.senecalearning.com/2018-08/1421c690-6fb6-44ed-993f-bbc4d7436603/numbers-1487222_1280,h_400,q_80,w_640.png)
![Illustrative background for Modulo operator ?? "content](https://image-v2.cdn.app.senecalearning.com/2018-08/1421c690-6fb6-44ed-993f-bbc4d7436603/numbers-1487222_1280,h_400,q_80,w_640.png)
Modulo operator
Modulo operator
- The modulo operator gives the remainder of the division of two numbers.
- For example:
- 5 MOD (or %) 2 would be equal to 1.
![Illustrative background for Integer division](https://image-v2.cdn.app.senecalearning.com/2018-08/1711327c-314f-48c3-ab8a-6ac561c1e60d/numbers-1487225_1280,h_400,q_80,w_640.png)
![Illustrative background for Integer division ?? "content](https://image-v2.cdn.app.senecalearning.com/2018-08/1711327c-314f-48c3-ab8a-6ac561c1e60d/numbers-1487225_1280,h_400,q_80,w_640.png)
Integer division
Integer division
- The integer division operator returns the quotient (whole part) of a division.
- For example:
- 5 DIV (or //) 2 would give 2.
1Computational Thinking & Algorithms
1.1Computational Thinking
1.2Algorithms
1.2.1Algorithms
1.2.2Pseudocode
1.2.3Flow Diagrams
1.2.4Logical Reasoning & Debugging
1.2.5Reading Algorithms
1.2.6Correcting Algorithms
1.2.7Complete the Algorithm
1.2.8Search Algorithms
1.2.9Linear Search
1.2.10Binary Search
1.2.11Sort Algorithms
1.2.12Bubble Sort
1.2.13Insertion Sort
1.2.14End of Topic Test - Algorithms
2Programming
2.1Programming Fundamentals
2.1.1Variables & Constants
2.1.2Comments
2.1.3Input & Output
2.1.4Arithmetic Operators
2.1.5Relational Operators
2.1.6Boolean Operators
2.1.7Sequence
2.1.8Selection
2.1.9Iteration
2.1.10Subroutines
2.1.11Scope
2.1.12Data Types
2.1.13Casting
2.1.14Arrays
2.1.152D Arrays
2.1.16Lists
2.1.172D Lists
2.1.18Strings
2.1.19Syntax Errors
2.1.20Logic Errors
2.1.21Runtime Errors
2.1.22End of Topic Test - Programming
2.2Designing Code
3Hardware & Software
3.1Hardware
3.2Software
4Data
5The Internet
6Online Safety & Security
6.1Protecting Yourself Online
Jump to other topics
1Computational Thinking & Algorithms
1.1Computational Thinking
1.2Algorithms
1.2.1Algorithms
1.2.2Pseudocode
1.2.3Flow Diagrams
1.2.4Logical Reasoning & Debugging
1.2.5Reading Algorithms
1.2.6Correcting Algorithms
1.2.7Complete the Algorithm
1.2.8Search Algorithms
1.2.9Linear Search
1.2.10Binary Search
1.2.11Sort Algorithms
1.2.12Bubble Sort
1.2.13Insertion Sort
1.2.14End of Topic Test - Algorithms
2Programming
2.1Programming Fundamentals
2.1.1Variables & Constants
2.1.2Comments
2.1.3Input & Output
2.1.4Arithmetic Operators
2.1.5Relational Operators
2.1.6Boolean Operators
2.1.7Sequence
2.1.8Selection
2.1.9Iteration
2.1.10Subroutines
2.1.11Scope
2.1.12Data Types
2.1.13Casting
2.1.14Arrays
2.1.152D Arrays
2.1.16Lists
2.1.172D Lists
2.1.18Strings
2.1.19Syntax Errors
2.1.20Logic Errors
2.1.21Runtime Errors
2.1.22End of Topic Test - Programming
2.2Designing Code
3Hardware & Software
3.1Hardware
3.2Software
4Data
5The Internet
6Online Safety & Security
6.1Protecting Yourself Online
![Go student ad image](/en-GB/revision-notes/_next/image?url=%2Fen-GB%2Frevision-notes%2Fimages%2Fgo-student-uk-ad.jpg&w=640&q=100)
Unlock your full potential with GoStudent tutoring
Affordable 1:1 tutoring from the comfort of your home
Tutors are matched to your specific learning needs
30+ school subjects covered