Math Class in Java

Math Class in Java

12th Grade

8 Qs

quiz-placeholder

Similar activities

Review I-PM Ujikom Multimedia

Review I-PM Ujikom Multimedia

12th Grade

10 Qs

 Unit 4 Advanced AP CSP

Unit 4 Advanced AP CSP

9th - 12th Grade

10 Qs

Chapter 7: Loops

Chapter 7: Loops

9th - 12th Grade

11 Qs

ANTARES Workshop - IoT Knowledge

ANTARES Workshop - IoT Knowledge

1st Grade - Professional Development

10 Qs

Kuis library JMF

Kuis library JMF

9th - 12th Grade

10 Qs

Revision Gr2-2025

Revision Gr2-2025

3rd Grade - University

12 Qs

AP CSP Review 11Q

AP CSP Review 11Q

10th - 12th Grade

11 Qs

Math Class in Java

Math Class in Java

Assessment

Quiz

Computers

12th Grade

Medium

Created by

J Patterson

Used 34+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be output by the following Java code?


System.out.println(Math.random());

0.0 <= x <1.0

0 < = 1

0.0 < = x1.0

1.0

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be output by the following Java code?


System.out.println(Math.sqrt(49));

7

-7

7.0

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be output by the following Java code?


System.out.println((int)Math.random()* 50);

integer from 1 to 50 incusive

integer from 3 to 7 inclusive

integer from 0 to 49 inclusive

integer from 1 to 49 inclusive

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be output by the following Java code?


System.out.println(Math.pow(4, 2));

8

16

4

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be output by the following Java code?


System.out.println(Math.abs(-4));

-4

4

3

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be output by the following Java code?


System.out.println((int)Math.random()* 4 +2);

integer from 3 to 5 inclusive

integer from 2 to 5 inclusive

integer from 4 to 5 inclusive

integer from 3 to 6 inclusive

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be output by the following Java code?


System.out.println(Math.abs(6.3));

6.3

-6.3

6.0

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?