Java Math and String Libraries

Java Math and String Libraries

9th - 12th Grade

14 Qs

quiz-placeholder

Similar activities

Array

Array

10th - 12th Grade

15 Qs

Programming revision

Programming revision

9th Grade

16 Qs

Arrays and Algorithms

Arrays and Algorithms

10th - 12th Grade

15 Qs

Area With Arrays

Area With Arrays

10th - 12th Grade

15 Qs

Unit 3 If statements Quiz

Unit 3 If statements Quiz

9th - 12th Grade

13 Qs

Strings

Strings

10th - 11th Grade

10 Qs

Java

Java

11th Grade

10 Qs

DATA SCIENCE Assessment (April)

DATA SCIENCE Assessment (April)

8th - 12th Grade

16 Qs

Java Math and String Libraries

Java Math and String Libraries

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Used 113+ times

FREE Resource

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the value of num?
double num = Math.pow(2, 5);
10.0
7.0
32.0
25.0

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the value of num?
double num = Math.sqrt(49);
7
7.0

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the value of num?
double num = Math.floor(123.75);
123.0
124.0

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the value of num?
double num = Math.ceil(45.17);
45.0
46.0

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the value of num?
double num = Math.abs(-1.28);
1.28
-1.28
1.3
1.2

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the value of num?
double num = Math.max(100, 200);
100.0
200.0
300.0
150.0

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the value of num?
double num = Math.min(100,200);
100.0
200.0
150.0
300.0

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?