Logo
search
menuicon
High grade 11 Others

High grade 11 Others

Jam
과일맨
quiz thumbnail
Team match
High 11
Others

High grade 11 Others

avatar

Jam

2

Quiz created with a premium map

10 questions

Allow incorrect answer

Hide answer

public quiz

# 1Multiple Choice
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
# 2Multiple Choice
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)
# 3Multiple Choice
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.
# 4Multiple Choice
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).
Want to see all 10 questions?
Join ZEP QUIZ to access 800,000+ quizzes for free.Log in and explore them all.

Access restricted due to plan expiration. Copy and edit on another map.