
Core Java Quiz-1
Authored by Vindhya Gaddam
English
1st - 5th Grade
Used 10+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a primitive data type in Java?
Which of the following is NOT a primitive data type in Java?intdoubleStringchar2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many bytes are used to store a double data type in Java?
How many bytes are used to store a double data type in Java?48
16
It varies depending on the value3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default value of a boolean variable in Java?
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?
Which data type is used to store a single character in Java?charint
byte
String
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the range of the byte data type in Java?
What is the range of the byte data type in Java? -128 to 1270 to 255 -32,768 to 32,767-2,147,483,648 to 2,147,483,6476.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the data type of the literal "3.14" in Java?
What is the data type of the literal "3.14" in Java?
floatdouble
int
long
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to declare a non-primitive data type in Java?
Which keyword is used to declare a non-primitive data type in Java?voidclass
new
non-primitiveAccess 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 Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?