Lecture 3 Flashcards

Numerical Expression

1
Q

What are the numeric operators?

A

+ = - / *

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What other operators are there besides the numeric?

A
  • % modulus operator ONLY for int
  • ( ) parentheses operator
  • ++ –
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is assignment?

A

= adds a value to a variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What operators need to be used with caution?

A

division / and modulus %

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the operand?

A

The values that an operations is being done on

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Why does the division operator need to be used with caution?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Why does the modulus operator need to be used with caution?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a sub expression?

A

An expression that has 2 sub expressions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly