Logo
search
menuicon
High grade 11 Others

High grade 11 Others

Jam
k-pop 보이그룹 작업실
quiz thumbnail
自由模式
高中 11
Others

High grade 11 Others

avatar

Jam

2

共 5 題

允許錯誤答案

顯示答案

公開測驗

# 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, 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).
想查看全部 5 個問題嗎?
加入 ZEP QUIZ,免費使用 80 萬份以上的測驗登入後探索全部