Search Header Logo

Casting in Java

Authored by Anne Kohart

Computers

11th - 12th Grade

CCSS covered

Used 43+ times

Casting in Java
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the value stored in x?

double x = (int) (1.8 * 2.0)

3.0

3

3.6

Error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the value stored in x?

double x = (int) 1.8 * 2.0

3.0

2.0

3.6

Error

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the value stored in x?

int x = 1.8 * 2.0

3

2

3.6

Error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the value of:

(int) (1 + 1 + 1 + 1 + 1.0 + 1 + 1 / 8)

1

0

0.875

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

For Modular Arithmetic what value is the most important?

The Modulo
The Given Number
The Remainder
The Divisor

Tags

CCSS.7.NS.A.2C

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

5%2

3

5

2

1

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

6%12

0

2

6

1

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?