Java Casting & Booleans

Java Casting & Booleans

10th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

JS #5 Arrow Functions

JS #5 Arrow Functions

12th Grade

20 Qs

AI & Facial Recognition

AI & Facial Recognition

9th - 12th Grade

20 Qs

Dictionary in Python

Dictionary in Python

10th - 12th Grade

20 Qs

Forms of Network Attack

Forms of Network Attack

10th Grade

18 Qs

GCSE - 2.3 Producing Robust Programs

GCSE - 2.3 Producing Robust Programs

9th - 11th Grade

15 Qs

CSP Unit 1 Review

CSP Unit 1 Review

9th - 12th Grade

20 Qs

Algebra 1 Chapter 4

Algebra 1 Chapter 4

9th - 12th Grade

20 Qs

Unit 3 Python TEST

Unit 3 Python TEST

11th - 12th Grade

20 Qs

Java Casting & Booleans

Java Casting & Booleans

Assessment

Quiz

Mathematics, Computers

10th - 12th Grade

Medium

CCSS
7.NS.A.2, HSA.CED.A.3, 6.EE.A.2

+7

Standards-aligned

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?