Java Casting & Booleans

Java Casting & Booleans

10th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

Basics in Java

Basics in Java

9th - 12th Grade

15 Qs

Python Syntax

Python Syntax

10th Grade

16 Qs

Cyber Safety

Cyber Safety

9th - 12th Grade

17 Qs

WJEC 1.8 Program Construction

WJEC 1.8 Program Construction

9th - 10th Grade

22 Qs

Practice Review Unit 1 (Algebra 2 ND)

Practice Review Unit 1 (Algebra 2 ND)

7th - 10th Grade

20 Qs

Java 1 Practice

Java 1 Practice

9th - 12th Grade

21 Qs

AP CSA Unit 1 Review

AP CSA Unit 1 Review

10th - 12th Grade

20 Qs

Mod 2 Test

Mod 2 Test

9th - 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 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

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?