
Java Using Math Functions
Authored by Sandeep M
Computers
9th Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which package has to be imported to use Java Math functions?
java.util.*
java.io.*
java.Mathematics.*
Already in java.lang package
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which Java function is used to calculate square root of a number?
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is return type of most Math functions in Java?
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which Java statement is used to calculate 5 to the power 10?
Math.exp(5, 10)
Math.power(5, 10)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of Math.floor(3.7) ?
5.0
3.0
4.0
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Output of Math.abs(-4) is:
-4.0
error
4.0
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What range of values does Math.random() function in Java return?
Between 0 (inclusive) and 100 (exclusive)
Between 1 (inclusive) and 10 (exclusive)
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?