Which of the following is NOT a primitive data type in Java?

Core Java Quiz-1

Quiz
•
English
•
1st - 5th Grade
•
Medium
Vindhya Gaddam
Used 10+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int
double
String
char
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many bytes are used to store a double data type in Java?
4
8
16
It varies depending on the value
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default value of a boolean variable in Java?
True
False
0
Null
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type is used to store a single character in Java?
char
int
byte
String
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the range of the byte data type in Java?
-128 to 127
0 to 255
-32,768 to 32,767
-2,147,483,648 to 2,147,483,647
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the data type of the literal "3.14" in Java?
float
double
int
long
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to declare a non-primitive data type in Java?
void
class
new
non-primitive
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Food and Drinks

Quiz
•
4th Grade
10 questions
Week 1 Assessment

Quiz
•
1st Grade
10 questions
Lesson 2 - A Royal Mystery Vocabulary

Quiz
•
5th Grade
10 questions
TYPES OF COMMUNICATION

Quiz
•
KG - Professional Dev...
18 questions
Biographies!

Quiz
•
3rd Grade
20 questions
B.E.S.T ELA Vocabulary

Quiz
•
5th Grade
10 questions
Inca Civilization Vocabulary and Concepts

Quiz
•
5th Grade
10 questions
Demonstrative and Interrogative Pronouns

Quiz
•
5th Grade
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade