Java Casting & Booleans

Java Casting & Booleans

10th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

Python Syntax

Python Syntax

10th Grade

16 Qs

Foundations of Programming

Foundations of Programming

9th - 10th Grade

18 Qs

IDT Unit 2 Review (practice for Test 2)

IDT Unit 2 Review (practice for Test 2)

8th - 12th Grade

20 Qs

WJEC 1.8 Program Construction

WJEC 1.8 Program Construction

9th - 10th Grade

22 Qs

CSP Unit 1 Review

CSP Unit 1 Review

9th - 12th Grade

20 Qs

Impacts of Digital Technology (Cars, cloud, shopping)

Impacts of Digital Technology (Cars, cloud, shopping)

10th - 11th Grade

21 Qs

Python-Basic

Python-Basic

3rd Grade - University

15 Qs

Java Arrays

Java Arrays

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?