Java Data Types Flashcard - Marvel

Java Data Types Flashcard - Marvel

Assessment

Flashcard

Information Technology (IT)

9th - 12th Grade

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

30 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What is the correct data type to store Black Panther’s kingdom population as a whole number? Options: int, double, boolean, char

Back

int

2.

FLASHCARD QUESTION

Front

Which of the following variable declarations is valid in Java?
Options:
int stark_tower = 100;
float 2hydra = 50.0;
boolean shield#status = true;
char spidey_sense = "on";

Back

int stark_tower = 100;

3.

FLASHCARD QUESTION

Front

Thor’s hammer weighs 42.5 kilograms. Which data type is best suited for this value?

Back

double

4.

FLASHCARD QUESTION

Front

Which of the following is NOT a primitive data type in Java? int, char, String, boolean

Back

String

5.

FLASHCARD QUESTION

Front

Which data type can store only two possible values, such as whether Vision is online (true or false)?

Back

boolean

6.

FLASHCARD QUESTION

Front

If Rocket Raccoon’s jetpack speed is stored as 85.4, which of the following declarations is valid? Options: String jetpackSpeed = 85.4;, double jetpackSpeed = 85.4;, int jetpackSpeed = 85.4;, boolean jetpackSpeed = 85.4;

Back

double jetpackSpeed = 85.4;

7.

FLASHCARD QUESTION

Front

Which of these values cannot be stored in a byte variable? -128, 0, 128, 100

Back

128

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?