Unit 6. Mathematical Library Methods

Unit 6. Mathematical Library Methods

9th - 10th Grade

20 Qs

quiz-placeholder

Similar activities

Python Review

Python Review

9th - 12th Grade

16 Qs

Variables Java

Variables Java

10th - 12th Grade

15 Qs

class 8 English computer QUIZ

class 8 English computer QUIZ

5th - 10th Grade

20 Qs

TIN 10 Bài 10 CĐ F. Hàm

TIN 10 Bài 10 CĐ F. Hàm

10th Grade

20 Qs

Computer Application Practice Quiz Class 10

Computer Application Practice Quiz Class 10

10th Grade

20 Qs

CSA Lessons 1-10

CSA Lessons 1-10

10th - 12th Grade

21 Qs

Java Programming

Java Programming

10th Grade

22 Qs

if-else-if and Logical Operators

if-else-if and Logical Operators

9th - 12th Grade

15 Qs

Unit 6. Mathematical Library Methods

Unit 6. Mathematical Library Methods

Assessment

Quiz

Computers

9th - 10th Grade

Medium

Created by

Rajat Shenoi

Used 107+ times

FREE Resource

20 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

15 mins • 1 pt

Give the output of the following expression:

If x = – 9.99, calculate Math.abs(x);

2.

FILL IN THE BLANK QUESTION

15 mins • 1 pt

Give the output of the following Math method:

Math.ceil(4.2)

3.

FILL IN THE BLANK QUESTION

15 mins • 1 pt

Give the output of the following Math method:

Math.abs(– 4)

4.

FILL IN THE BLANK QUESTION

15 mins • 1 pt

Give the output of the following expressions:

If x = 9.0, calculate Math.sqrt(x);

5.

FILL IN THE BLANK 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));

6.

FILL IN THE BLANK QUESTION

15 mins • 1 pt

Give the output of the following:

Math.sqrt(Math.max(9,16))

7.

FILL IN THE BLANK 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);

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?