Arithmetic Operators Flashcards

1
Q

+

A

Addition,Adds together two values x + y

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

-

A

Subtraction,Subtracts one value from another x - y

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

*

A

Multiplication, Multiplies two values x * y

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

/

A

Division, Divides one value by another x / y

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

%

A

Modulus, Returns the division remainder x % y

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

++

A

Increment, Increases the value of a variable by 1 ++x

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

A

Decrement, Decreases the value of a variable by 1 –x

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

=

A

assignment operator, assign the value int x = 10;

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

+=

A

addition assignment operator, adds a value int x = 10;

x += 5;

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