Java Casting & Booleans
Quiz
•
Mathematics, Computers
•
10th - 12th Grade
•
Practice Problem
•
Medium
+7
Standards-aligned
Jennifer Hoagland
Used 176+ times
FREE Resource
Enhance your content in a minute
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
21 questions
Lecture Exercise Topic 1.3
Quiz
•
12th Grade
17 questions
PSTS1 Informatika
Quiz
•
10th Grade
15 questions
04.01 matura rozszerzona 3bcd
Quiz
•
12th Grade
17 questions
Применение производной
Quiz
•
1st - 10th Grade
20 questions
Устный счет. 11 класс
Quiz
•
11th Grade
20 questions
4/5/2023 Solving Logarithmic Eqs wth Two Logs
Quiz
•
11th Grade
20 questions
Ulangan harian Matematika Kd 3.2
Quiz
•
12th Grade
16 questions
PC prezentace
Quiz
•
10th - 11th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Mathematics
34 questions
Geometric Terms
Quiz
•
9th - 12th Grade
16 questions
Proportional Relationships And Constant Of Proportionality
Quiz
•
7th - 12th Grade
20 questions
Simplifying Radicals
Quiz
•
10th Grade
15 questions
Identify Triangle Congruence Criteria
Quiz
•
9th - 12th Grade
16 questions
Function or Non-Function?
Quiz
•
8th - 10th Grade
13 questions
Reading And Writing Numerical Expression
Quiz
•
6th - 12th Grade
56 questions
CCG 2.2.3 Area
Quiz
•
9th - 12th Grade
20 questions
Triangle Congruence
Quiz
•
9th - 10th Grade
