# 1選擇題Which Java class must be imported to use functions like square root and exponents?java.util.Scannerjava.lang.Mathjava.io.Mathjava.lang.String
# 2選擇題What is the correct Java syntax to calculate the square root of a number?Math.power(num, 0.5)Math.sqroot(num)Math.sqrt(double num)Math.root(num, 2)
# 3選擇題When calculating the hypotenuse, why should the variable be stored as a double rather than an int?Using an int could cause problems since triangle sides are often decimal values.Java does not allow int variables to be printed with String messages.double variables use less memory than int variables.Integers cannot be used in the Math.pow method.
# 4選擇題According to the text, what is the default execution order of code in a Java program?It executes randomly based on available memory.It executes from the bottom of the class to the top.It executes all math operations first, then all String operations.It executes sequentially (Line 1, then Line 2, and so on).