
Unit 6. Mathematical Library Methods
Authored by Rajat Shenoi
Computers
9th - 10th Grade
Used 107+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
FILL IN THE BLANKS QUESTION
15 mins • 1 pt
Give the output of the following expression:
If x = – 9.99, calculate Math.abs(x);
(a)
2.
FILL IN THE BLANKS QUESTION
15 mins • 1 pt
Give the output of the following Math method:
Math.ceil(4.2)
(a)
3.
FILL IN THE BLANKS QUESTION
15 mins • 1 pt
Give the output of the following Math method:
Math.abs(– 4)
(a)
4.
FILL IN THE BLANKS QUESTION
15 mins • 1 pt
Give the output of the following expressions:
If x = 9.0, calculate Math.sqrt(x);
(a)
5.
FILL IN THE BLANKS QUESTION
15 mins • 1 pt
Give the output of the following program segment:
double x = 2, y = 2.5;
System.out.println(Math.min(Math.floor(x),y));
(a)
6.
FILL IN THE BLANKS QUESTION
15 mins • 1 pt
Give the output of the following:
Math.sqrt(Math.max(9,16))
(a)
7.
FILL IN THE BLANKS QUESTION
15 mins • 1 pt
What will be the output of the following code?
double a = – 6.35;
double b = 14.74;
double x = Math.round(Math.max(a,b));
System.out.println(x);
(a)
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?