
Java Data Types and Type Casting
Quiz
•
Computers
•
•
Practice Problem
•
Medium
Al Patrick Seneres
Used 27+ times
FREE Resource
Enhance your content in a minute
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type is used to store a single character in Java?
byte
char
int
boolean
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default value of a boolean variable in Java?
true
false
0
1
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type is used to store decimal values in Java?
float
boolean
int
long
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the range of values for the byte data type in Java?
-128 to 127
-32,768 to 32,767
-2^31 to 2^31-1
-2^63 to 2^63-1
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which type of conversion involves loss of information?
Widening conversion
Narrowing conversion
Implicit casting
Explicit casting
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default data type for integral values in Java?
byte
short
int
long
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type is used to specify a true or false value in Java?
byte
char
boolean
double
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
40 questions
STS GANJIL KONSENTRASI KEAHLIAN 11 RPL
Quiz
•
11th Grade
40 questions
Penilaian Akhir Semester Ganjil - PBO Kelas XI RPL -SMK_AB
Quiz
•
11th Grade
35 questions
Sensor - ICT IGCSE
Quiz
•
7th Grade
40 questions
Computer Science Pre-Assessment Quiz
Quiz
•
9th - 12th Grade
45 questions
Comptia Network+ chapter 1-3 exam
Quiz
•
11th Grade - University
40 questions
Visual Basic Kelas XI Quiz
Quiz
•
11th Grade
40 questions
PTS Informatika kelas 9 - SMPN 3 JKT
Quiz
•
9th Grade
40 questions
STS SEMESTER 3 - INFORMATIKA
Quiz
•
11th 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
