Java Casting & Booleans

Java Casting & Booleans

10th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

Cyber Safety

Cyber Safety

9th - 12th Grade

17 Qs

Mod 2 Test

Mod 2 Test

9th - 12th Grade

20 Qs

Google Sheets ReViEw

Google Sheets ReViEw

KG - University

18 Qs

Programming lesson 1 - Syntax

Programming lesson 1 - Syntax

9th Grade - University

18 Qs

Algebra 1 Unit 2 Lesson 1 - 4 Practice

Algebra 1 Unit 2 Lesson 1 - 4 Practice

10th Grade

20 Qs

Tables Rules Equations Graphs

Tables Rules Equations Graphs

8th Grade - University

15 Qs

Microsoft Excel

Microsoft Excel

3rd Grade - Professional Development

22 Qs

Network Protocols

Network Protocols

10th Grade

15 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?