
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
43 questions
Parts of DSLR Camera
Quiz
•
10th - 12th Grade
40 questions
Pemrograman Dasar Kelas X
Quiz
•
10th Grade
40 questions
Graphic Design Principles & Elements of Design (20 min)
Quiz
•
9th - 12th Grade
45 questions
Kuis Sistem Komputer
Quiz
•
10th Grade - University
40 questions
PENILAIAN AKHIR SEMESTER PWPB XII
Quiz
•
12th Grade
40 questions
Java-Collections
Quiz
•
University
45 questions
IP MIDTERM
Quiz
•
University
37 questions
GCSE CS Data Rep Lesson 4
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
