Java Math

Java Math

9th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

Cumulative Test Practice Units 1, 3, 4, 5, & 7

Cumulative Test Practice Units 1, 3, 4, 5, & 7

9th - 12th Grade

17 Qs

APCSA Quiz 1

APCSA Quiz 1

9th Grade - University

13 Qs

Java Math Review

Java Math Review

9th - 12th Grade

18 Qs

AP Computer Science A

AP Computer Science A

10th - 12th Grade

10 Qs

19W Final Exam - PLTW

19W Final Exam - PLTW

9th - 12th Grade

15 Qs

AP CS A Unit 7 Quiz PRACTICE

AP CS A Unit 7 Quiz PRACTICE

9th - 12th Grade

10 Qs

Unit 5 Review

Unit 5 Review

9th - 12th Grade

18 Qs

Unit 6 Arrays

Unit 6 Arrays

10th - 12th Grade

14 Qs

Java Math

Java Math

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Bob Powers

Used 57+ times

FREE Resource

15 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What will the following code segment print?

System.out.println(4 / 5);

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What will the following code segment print?

System.out.println(4 * 2.0);

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What will the following code segment print?

System.out.println("b" + 2 * 2);

4.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What will the following code segment print?

System.out.println(1 / 2.0);

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the value in variable x after this code segment is executed?

int x = 5.0 + 2;

7

7.0

There will be a runtime error

There will be a syntax error

5.02

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the value in variable x after this code segment is executed?

String x = "" + 4 + 2;

"6"

"6.0"

There will be a runtime error

There will be a syntax error

"42"

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What will the following code segment print?

System.out.println(17 % 3);

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?