Logo
search
menuicon
High grade 11 Others

High grade 11 Others

Jam
과일맨
quiz thumbnail
團隊對戰
高中 11
Others

High grade 11 Others

avatar

Jam

2

這份測驗是用進階地圖建立的。

共 10 題

允許錯誤答案

隱藏答案

公開測驗

# 1選擇題
Which Java class must be imported to use functions like square root and exponents?
java.util.Scanner
java.lang.Math
java.io.Math
java.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 using the Pythagorean theorem (a2+b2=c2a^2 + b^2 = c^2), why should the variable storing the result be a `double` rather than an `int`?
Integers cannot be used in the Math.pow method.
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.
# 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).
想查看全部 10 個問題嗎?
加入 ZEP QUIZ,免費使用 80 萬份以上的測驗登入後探索全部

方案到期,無法存取。 請複製並在其他地圖編輯。