Java Casting & Booleans

Quiz
•
Mathematics, Computers
•
10th - 12th Grade
•
Medium
+7
Standards-aligned
Jennifer Hoagland
Used 173+ 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
20 questions
Hypothesis testing

Quiz
•
11th - 12th Grade
20 questions
sql queries - 2

Quiz
•
12th Grade
15 questions
Basics in Java

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

Quiz
•
11th Grade
21 questions
Impacts of Digital Technology (Cars, cloud, shopping)

Quiz
•
10th - 11th Grade
20 questions
Graphing Linear Inequalites

Quiz
•
9th - 12th Grade
20 questions
UK Computer Laws

Quiz
•
10th - 12th Grade
20 questions
Java Arrays

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Mathematics
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
10 questions
Solving Equations Opener

Quiz
•
11th Grade
6 questions
Maier - AMDM - Unit 1 - Quiz 1 - Estimation

Quiz
•
12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade
16 questions
Unit 2: Rigid Transformations

Quiz
•
10th Grade
20 questions
The Real Number System

Quiz
•
8th - 10th Grade
15 questions
Polynomials: Naming, Simplifying, and Evaluating

Quiz
•
9th - 11th Grade
40 questions
Camp CMS Math 1 Test Review

Quiz
•
9th - 12th Grade