Review Operation Bingo
1. What is the result of: 3.0 + 4.0 A: 7.0
2. What is the data type of: 3.0 + 4 A: double
3. What is the result of: 3 + “4” A: “34”
4. What is the result of: 10 / 3 A: 3
5. What is the result of: 5 % 7 A: 5
6. What is the result of: 7 % 5 A: 2
7. What is the result of: 7 / 5 A: 1
8. What is the data type of: 1.0 – 5 A: double
9. What is the result of: 1.0 – 5 A: -4
10. What is the data type of: “CS” + 13 + 9 A: String
11. What is the result of: “CS” + 13 + 9 A: “CS139”
12. What is the data type of: 5 / 7 A: int
13. What is the result of: 5 / 7 A: 0
14. What is the result of: 294 % 7 / 50.0 A: 0.0
15. What is the data type of: 294 % 7 / 50.0 A: double
Math.PI A: 3.14 (to two decimal places) 16. What is the result of: Math.PI A: 3.14 (to two decimal places)
17. What is the data type of: Math.PI A: double
18. What is the result of: 17 / 25 * 1.0 0.0
19. What is the result of: 1.0 + 7 % 25
20. What is the result of: 7 / 3 * 6.0 / 2
21. What is the result of: true && false
22. What is the result of: false || true
23. What is the data type of: false || true
24. What is the result of: ‘a’ < ‘b’ A: true
25. What is the result of: x != x
26. What is the result of: 5 == ‘5’
‘a’ < ‘b’ || ‘X’ > ‘Y’ 27. What is the result of: ‘a’ < ‘b’ || ‘X’ > ‘Y’
28. What is the result of: x == 3 && x == 5
29. What is the result of: x != 3 || x != 5
30. What is the data type of: “Pinto”.equals(“Mustang”) A: boolean
31. What is the data type of: 3 + ( 6 + “4”) A: String
32. What is the result of: 3 + ( 6 + “4”) A: “364”
33. What is the data type of: “String 1”.compareTo(“Me”) A: int
34. What is the result of: 10 / 3.0 A: 3.33 (two decimals)
35. What is the result of: 10.0 / 3.0 3.33 (two decimals)
36. What is the result of: 3 + 6 + “4” A: “94”
37. What is the data type of: 2.0 * (17 / 25) A: double
38. What is the result of: 2.0 * (17 / 25) A: 0.0
39. What is the result of: 17 % 25 A: 17
40. What is the result of: 3 * 0 + 7.0 A: 7.0
41. What is the data type of: 3 * 0 + 7.0 A: double
42 What is the result of: 3.0 + 5 + “” A: “8.0”
43. What is the data type of: 3.0 + 5 + “” A: String
44. What is the data type of: 3 * 7.0 / 1 <= 17 A: boolean
45. What is the result of: 49 % 7 + 3 + 4 A: 7
46. What is the data type of (int) (6.0 + 7) % 3 A: int
47. What is the result of (int) (6.0 + 7) % 3 A: 1
48. What is the result of (double) 12 / 4 A: 3.0
49. What is the data type of (double) 12 / 4 A: double
50. What is the result of: 5 – 1.0 A: -4.0