Midterm 5 14. What is the output? public dass Person f public static void main(S
ID: 3867586 • Letter: M
Question
Midterm 5
14. What is the output? public dass Person f public static void main(String args) int age = 20; System.out.printin( Value of age:" +age); age = 5 + 3; System.out.printin( Value of age:" +age); age = age + 1; agett; System.out.printin( Value of age:"+age); C Value of age: 20 Value of age: 8 Value of age: 10 OValue of age: 20 Value of age: 28 Value of age: 38 Value of age: 20 Value of age: 208 Value of age: 20810 Value of age: 20 Value of age: 8 Value of age: 9 15. Which data type is most commonly used to represent numeric data? int Ofloat OString O shortExplanation / Answer
14. a) Value of age: 20
Value of age: 8
Value of age: 10
15. a) int
19 d) 20
20. a) Type casting changes the type of the value stored.
d) TYpe casting lowers the range of the values.
21. a) true
24. b) False only Single quotes allowed.
25. c) Math methods can be invoked without creating an instance of a Math object.
d) Common Math functions like square root are taken care of in the language.
Let me know if you have any trouble understanding any of this. I'll love to help you.