Casting in Java

Quiz
•
Computers
•
11th - 12th Grade
•
Hard
Standards-aligned
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
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
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Area With Arrays

Quiz
•
10th - 12th Grade
20 questions
K11_Kiểm tra thường xuyên_Lần 1_HK1

Quiz
•
11th Grade
20 questions
Java Arrays

Quiz
•
9th - 12th Grade
10 questions
AP CSA Unit 1 & 2 Review

Quiz
•
9th - 12th Grade
20 questions
APCSA Arrays

Quiz
•
9th - 12th Grade
18 questions
Java Basics MP1 Test 3

Quiz
•
11th Grade
16 questions
Loops

Quiz
•
5th - 12th Grade
11 questions
Java1

Quiz
•
6th - 11th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade