Java Operandos Flashcards

1
Q

Suma entre n, m

A

n + m

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

Resta entre n, m

A

n - m

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

Multiplicación entre n, m

A

n * m

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

División entre n, m

A

n / m

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

Resto entre n, m

A

n % m

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

Incrementar x, asignar a y

A

y = ++x;

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

Asignar x a y, incrementar x

A

y = x++;

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

Decrementar x, asignar a y

A

y = –x;

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

Asignar x a y, decrementar x

A

y = x–;

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

A x sumar y, asignar

A

x += y;

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

A x restar y, asignar

A

x -= y;

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

A x multiplicar y, asignar

A

x *= y;

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

A x dividir y, asignar

A

x /= y;

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

A x calcular resto y, asignar

A

x %= y;

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

Si x es true, devolver y, si no devolver z

A

(x)?y:z

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

Comparar si x es igual a y

A

x == y

17
Q

Comparar si x es mayor que y

A

x > y

18
Q

Comparar si x es menor que y

A

x < y

19
Q

Comparar si x es distinto que y

A

x != y

20
Q

Comparar si x es mayor o igual a y

A

x >= y

21
Q

Comparar si x es menor o igual que y

A

x <= y

22
Q

Invertir valor de booleano x

A

!x

23
Q

Devolver true si x e y son true (AND)

A

x & y
x && y
para no evaluar y en caso de false

24
Q

Devolver true si x o y son true (OR)

A

x | y
x || y
para no evaluar y en caso de true

25
Q

Devolver true solo si x o y son true (XOR)

A

x ^ y