Lecture 3 Flashcards
Numerical Expression
1
Q
What are the numeric operators?
A
+ = - / *
2
Q
What other operators are there besides the numeric?
A
- % modulus operator ONLY for int
- ( ) parentheses operator
- ++ –
3
Q
What is assignment?
A
= adds a value to a variable
4
Q
What operators need to be used with caution?
A
division / and modulus %
5
Q
What is the operand?
A
The values that an operations is being done on
6
Q
Why does the division operator need to be used with caution?
A
7
Q
Why does the modulus operator need to be used with caution?
A
8
Q
What is a sub expression?
A
An expression that has 2 sub expressions
9
Q
How does a computer work out an expression
A
If the expression is made up of sub
expressions then it works out the result
of each sub expression in a particular
order. This order depends on the
operands of the expression.
10
Q
A