Search Header Logo

Core Java Quiz-1

Authored by Vindhya Gaddam

English

1st - 5th Grade

Used 10+ times

Core Java Quiz-1
AI

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?

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?