Casting in Java

Casting in Java

11th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

AP CSA Unit 1 & 2 Review

AP CSA Unit 1 & 2 Review

9th - 12th Grade

10 Qs

Java Arrays

Java Arrays

9th - 12th Grade

20 Qs

19W Final Exam - PLTW

19W Final Exam - PLTW

9th - 12th Grade

15 Qs

Loops

Loops

5th - 12th Grade

16 Qs

AP Computer Science A Review 1

AP Computer Science A Review 1

10th - 12th Grade

15 Qs

Computer Science Unit 3 Test

Computer Science Unit 3 Test

9th - 12th Grade

15 Qs

C#

C#

11th Grade

10 Qs

2D Arrays

2D Arrays

9th - 12th Grade

15 Qs

Casting in Java

Casting in Java

Assessment

Quiz

Computers

11th - 12th Grade

Hard

Created by

Anne Kohart

Used 43+ times

FREE Resource

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

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

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?