Java Casting & Booleans

Quiz
•
Mathematics, Computers
•
10th - 12th Grade
•
Medium
+7
Standards-aligned
Jennifer Hoagland
Used 174+ 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
Similar Resources on Wayground
15 questions
Network Protocols

Quiz
•
10th Grade
17 questions
Cyber Safety

Quiz
•
9th - 12th Grade
20 questions
Mod 2 Test

Quiz
•
9th - 12th Grade
18 questions
Google Sheets ReViEw

Quiz
•
KG - University
18 questions
Programming lesson 1 - Syntax

Quiz
•
9th Grade - University
15 questions
Tables Rules Equations Graphs

Quiz
•
8th Grade - University
15 questions
Algebra Negative Exponents and Scientific Notation

Quiz
•
8th Grade - University
15 questions
Evaluate Functions Absolute Value

Quiz
•
9th Grade - University
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
Discover more resources for Mathematics
10 questions
Decoding New Vocabulary Through Context Clues

Interactive video
•
6th - 10th Grade
20 questions
Parallel lines and transversals

Quiz
•
9th - 12th Grade
9 questions
Geometry and Trigonometry Concepts

Interactive video
•
9th - 12th Grade
31 questions
2.1.3 Angle relationships

Quiz
•
10th - 11th Grade
23 questions
Geometry - Conditional Statements

Quiz
•
9th - 10th Grade
10 questions
Angle Relationships with Parallel Lines and a Transversal

Quiz
•
9th - 12th Grade
17 questions
Parallel lines cut by a transversal

Quiz
•
10th Grade
10 questions
Simplifying Radicals

Quiz
•
10th Grade