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
16 questions
Computer Ethics and Security

Quiz
•
12th Grade
20 questions
UK Computer Laws

Quiz
•
10th - 12th Grade
20 questions
AQA GCSE Computer Science: Computer Systems (Paper 2)

Quiz
•
9th - 11th Grade
20 questions
Jago PHP

Quiz
•
11th Grade
20 questions
Advanced Excel

Quiz
•
KG - University
15 questions
Basics in Java

Quiz
•
9th - 12th Grade
20 questions
Sell Right LAP Test

Quiz
•
9th - 12th Grade
20 questions
Python Inbuilt Libraries

Quiz
•
11th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Mathematics
16 questions
Segment Addition Postulate

Quiz
•
10th Grade
20 questions
Parallel Lines and Transversals Independent Practice

Quiz
•
10th Grade
16 questions
Parallel Lines cut by a Transversal

Quiz
•
10th Grade
20 questions
Solving Multi-Step Equations

Quiz
•
10th Grade
20 questions
Midpoint and Distance

Quiz
•
10th Grade
12 questions
Conditional Statement Practice

Quiz
•
10th Grade
20 questions
Multi-Step Equations and Variables on Both Sides

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

Quiz
•
10th Grade