
Variables and Data Types
Authored by Jason Comeau
Computers
9th - 12th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the primitive data types in Java?
boolean, byte, short, int, long, float, double, and char
boolean, byte, short, int, long, float, double, char, string
boolean, string, array, object
integer, string, array, object
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the size of the 'int' data type in Java?
4 bytes
16 bytes
8 bytes
2 bytes
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type is used to store decimal numbers in Java?
float
int
boolean
double
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default value of the 'boolean' data type in Java?
null
true
0
false
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between 'float' and 'double' data types in Java?
The difference between 'float' and 'double' data types in Java is the size.
The main difference between 'float' and 'double' data types in Java is the precision.
The difference between 'float' and 'double' data types in Java is the range.
The difference between 'float' and 'double' data types in Java is the memory usage.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type is used to store single characters in Java?
int
boolean
char
String
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the maximum value that can be stored in the 'short' data type in Java?
32767
2147483647
65535
-32768
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
12 questions
ASAS SAINS KOMPUTER : TINGKATAN 3
Quiz
•
4th Grade - University
15 questions
11° Evaluación bimestral de informática
Quiz
•
11th Grade
10 questions
Server Administration- Quiz 1
Quiz
•
12th Grade - University
15 questions
Databases
Quiz
•
11th Grade
10 questions
Programação Front End - CSS avançado
Quiz
•
11th Grade
11 questions
Cascading Style Sheets
Quiz
•
8th - 12th Grade
15 questions
Chapter 3: Storage devices and media (Part 2):
Quiz
•
10th - 11th Grade
10 questions
PRE-ASSESSMENT ETECH M1
Quiz
•
12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade