Unit 6. Mathematical Library Methods

Unit 6. Mathematical Library Methods

9th - 10th Grade

20 Qs

quiz-placeholder

Similar activities

Java

Java

8th - 10th Grade

22 Qs

Library Classes

Library Classes

10th Grade

25 Qs

X Input in Java

X Input in Java

10th Grade

15 Qs

Kuis Dadakan ;)

Kuis Dadakan ;)

10th Grade - University

15 Qs

SAINS KOMPUTER TINGKATAN 4 (BAB1)

SAINS KOMPUTER TINGKATAN 4 (BAB1)

KG - University

21 Qs

Java Basics (Data Types and Variables)

Java Basics (Data Types and Variables)

6th - 10th Grade

16 Qs

Java Code Snippets Quiz 1

Java Code Snippets Quiz 1

10th Grade

22 Qs

AP Computer Science A

AP Computer Science A

10th - 12th Grade

20 Qs

Unit 6. Mathematical Library Methods

Unit 6. Mathematical Library Methods

Assessment

Quiz

Computers

9th - 10th Grade

Medium

Created by

Rajat Shenoi

Used 106+ 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?