Java Casting & Booleans
Quiz
•
Mathematics, Computers
•
10th - 12th Grade
•
Practice Problem
•
Medium
+7
Standards-aligned
Jennifer Hoagland
Used 176+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
2 mins • 1 pt
Indicate whether the following lines of code are legal or illegal. If legal select the resulting value of x. If illegal select Error.
double x;
x = 2.3;
legal
illegal
2
2.3
Error
2.
MULTIPLE SELECT QUESTION
2 mins • 1 pt
Indicate whether the following lines of code are legal or illegal. If legal select the resulting value of x. If illegal select Error.
int x;
x = 2.3;
legal
illegal
2
2.3
Error
3.
MULTIPLE SELECT QUESTION
2 mins • 1 pt
Indicate whether the following lines of code are legal or illegal. If legal select the resulting value of x. If illegal select Error.
double x;
x = 7;
legal
illegal
7
7.0
Error
4.
MULTIPLE SELECT QUESTION
2 mins • 1 pt
Indicate whether the following lines of code are legal or illegal. If legal select the resulting value of x. If illegal select Error.
int x;
x = 7.0;
legal
illegal
7
7.0
Error
5.
MULTIPLE SELECT QUESTION
2 mins • 1 pt
Indicate whether the following lines of code are legal or illegal. If legal select the resulting value of x. If illegal select Error.
int x;
x = 3/4;
legal
illegal
0
0.75
Error
Tags
CCSS.7.NS.A.2
CCSS.7.NS.A.3
6.
MULTIPLE SELECT QUESTION
2 mins • 1 pt
Indicate whether the following lines of code are legal or illegal. If legal select the resulting value of x. If illegal select Error.
double x;
x = 3/4;
legal
illegal
0.0
0.75
Error
7.
MULTIPLE SELECT QUESTION
2 mins • 1 pt
Indicate whether the following lines of code are legal or illegal. If legal select the resulting value of x. If illegal select Error.
double x;
x = 3.0/4;
legal
illegal
0.0
0.75
Error
Tags
CCSS.7.EE.B.4
CCSS.7.NS.A.2
CCSS.7.NS.A.3
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
2.3.1 Graph Traversal & Path Finding Algorithms
Quiz
•
12th Grade - University
15 questions
multiplication quiz
Quiz
•
10th Grade
20 questions
MAT S213 Reviewer 2
Quiz
•
12th Grade
17 questions
Matrikulasi Final Test
Quiz
•
10th Grade
17 questions
Mobile app development principles
Quiz
•
10th Grade
17 questions
Security and Ethics
Quiz
•
9th - 12th Grade
15 questions
Coding Quiz
Quiz
•
6th - 10th Grade
15 questions
Ms. Exel dan Fungsi Logika IF
Quiz
•
10th Grade - University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Mathematics
10 questions
Halloween Trivia Challenge
Interactive video
•
6th - 10th Grade
20 questions
Translations, Reflections & Rotations
Quiz
•
8th - 10th Grade
19 questions
Halloween Fun
Quiz
•
6th - 10th Grade
10 questions
Test Your Halloween Trivia Knowledge
Interactive video
•
6th - 10th Grade
20 questions
SSS/SAS
Quiz
•
9th - 12th Grade
10 questions
Exploring Steve Spangler's Halloween Science Experiments
Interactive video
•
6th - 10th Grade
12 questions
Slope Intercept Form Intro
Quiz
•
8th - 10th Grade
18 questions
Triangle Proofs
Quiz
•
10th Grade
