Operations Flashcards
Operation
An action that is performed on one or more pieces of data in order to produce additional data
Types of operations
Arithmetic
Relational
Boolean / logic
Arithmetic operation
A process performed on one or more numbers
Examples :+, -, *, /,
Two tricky arithmetic operators
DIV = remainder is ignored
MOD = dovides but uses only the remainder
Relational operations
A comparison between two values to check whether they are equal or whether one is less pr greater than the other. Found in OF statements and as a part of a loop
Examples: <, >, =
Logic operations
Can only have two outcomes- true or false. A logic operator connects together logic expressions to produce more complex logic expressions
Examples: AND, NOT, OR