Java Math

Java Math

9th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

CMU quiz

CMU quiz

7th - 9th Grade

20 Qs

Tipuri de date

Tipuri de date

10th Grade

10 Qs

Alat - Alat Fiber Optic dan Fungsinya

Alat - Alat Fiber Optic dan Fungsinya

10th Grade

10 Qs

Chapter 7: System life cycle

Chapter 7: System life cycle

9th - 11th Grade

15 Qs

Tin 11 - Bài 2 - Phần 1

Tin 11 - Bài 2 - Phần 1

11th Grade

10 Qs

HEALTH AND SAFETY 9

HEALTH AND SAFETY 9

7th - 9th Grade

11 Qs

1.1.1 The structure and function of the processor

1.1.1 The structure and function of the processor

11th Grade - University

15 Qs

Fundamentos PHP (Manejo de Fomularios y arreglos)

Fundamentos PHP (Manejo de Fomularios y arreglos)

9th Grade

10 Qs

Java Math

Java Math

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Bob Powers

Used 57+ times

FREE Resource

AI

Enhance your content in a minute

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

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

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?