|
|
|
|
|
|
Ch 2 Questions #3 Arithmetic Expressions 1. List the precedence of operator
evaluation. 2. If int result = 25 + 8 / 3; , what value will result have? 3. If int result = 25 % 3; , what value will result have? 4. If int result = 2; is followed by result
= result * 4; what value will result have? 5. What will most likely happen with the following code: final
int BASE = 32; BASE = BASE + 1; 6. How would you convert an integer to a double? a double to an integer? 7. What is a binary operator? 8. What operator has the lowest precedence level?, the highest? 9. If int result = 25 / 3; , what value will result have? 10. If double result = 103.2 / 84.7 - 3.1; , what value will result have?? |
|