What is the value stored in x?
double x = (int) (1.8 * 2.0)
Casting in Java
Quiz
•
Computers
•
11th - 12th Grade
•
Hard
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
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
10 questions
C#
Quiz
•
11th Grade
10 questions
AP CSA Unit 1 & 2 Review
Quiz
•
9th - 12th Grade
20 questions
Java Arrays
Quiz
•
9th - 12th Grade
16 questions
Loops
Quiz
•
5th - 12th Grade
15 questions
AP Computer Science A Review 1
Quiz
•
10th - 12th Grade
18 questions
Java Basics MP1 Test 3
Quiz
•
11th Grade
12 questions
Java Strings
Quiz
•
9th - 12th Grade
10 questions
Variables and Data Types
Quiz
•
10th - 12th Grade
15 questions
Multiplication Facts
Quiz
•
4th Grade
20 questions
Math Review - Grade 6
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
5 questions
capitalization in sentences
Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions
Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines
Quiz
•
Professional Development
12 questions
Dividing Fractions
Quiz
•
6th Grade