
Variables and Data Types
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Hard
Jason Comeau
FREE Resource
Enhance your content in a minute
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
Create a free account and access millions of resources
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
10 questions
JavaScript 2
Quiz
•
12th Grade
15 questions
10A16_L1_HK1
Quiz
•
10th Grade
10 questions
Banco de Dados - Tipos de dados Numéricos
Quiz
•
11th Grade
15 questions
Cyber Security KS4
Quiz
•
8th - 12th Grade
10 questions
Kuis Pengayaan (Aplikasi Sehari-hari?
Quiz
•
9th Grade
10 questions
Lesson 1 Introduction to Database System
Quiz
•
10th Grade
13 questions
PowerPoint Quiz 2
Quiz
•
9th Grade
10 questions
Latihan Brainware dan Hardware
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
