Module 4: Mutating Information Flashcards

1
Q

What is the operator?

A

A symbol that is used to perform operations

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

What are the different types of operators in Java?

A

Arithmetic Operators
Assignment Operators
Comparison Operators
Conditional/Logical Operators

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

What are your Arithmetic Operators?

A

+ addition
- subtraction
* multiplication
/ division
++ increment
- - decrement

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

What are your Assignment Operators?

A

= Example x = 10 Same as x = x = 10;
+= Example x += 10 Same x = x + 10;
-= Example x -= 10 Same as x = x - 10;
*= Example x *= 10 Same as x = x * 10;
/= Example x /= 10 Same as x = x / 10;
%= Example x %= 10 Same as x = x % 10;
&= Example x &= 10 Same as x = x & 10;
|= Example x |= 10 Same as x = x | 10;
^= Example x ^= 10 Same as x = x ^ 10;
»= Example x&raquo_space;= 10 Same x = x&raquo_space;10; «= Example x «= 10 Same as x = x &laquo_space;10;

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

What are your Comparison Operators?

A

== Equal to
!= Not equal
> Greater than
< Less than
>= Greater than or equal to
<= Less than or equal to

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

What are your Conditional/Logical Operators?

A

&& Logical and returns true if both statements are true
|| Logical or returns true if one of the statements is true
! Not reverses the result. Return true if the result is false.

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