Ch. 2.14: Arithmetic Operators Flashcards

1
Q

What is a unary operator?

A

Unary operators require a single operand.

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

What is a negation operator?

A

The minus sign before a variable.

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

What is a binary operator?

A

Binary operators work with two operands.

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

What is a ternary operator?

A

Ternary operators require three operands.

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

What is integer division?

A

When both of the division operator’s operands are integers, the result of the division will also be an integer. If the result has a fractional part, it will be thrown away.

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