Programming Basics - Operators Flashcards
1
Q
Operators
A
Special characters that perform specific functions
2
Q
Types of functions
A
Addition
Subtraction
Multiplication
Division
Exponentiation
Quotient
Remainder
3
Q
Exponential Operator
A
**
to the power of e.g. X**3
= X cubed
4
Q
Quotient Operator
A
DIV
gives whole number product of division
e.g. 20 DIV 3 = 6
5
Q
Remainder operator
A
MOD
gives remainder product of division
e.g. 20 MOD 3 = 2
6
Q
What rule do computers follow?
A
BODMAS
7
Q
What is an assignment operator?
A
’=’
assigns values to variables
8
Q
What is a comparison operator?
A
Compare left hand expression to right hand expression