Core Java Quiz-1

Core Java Quiz-1

1st - 5th Grade

15 Qs

quiz-placeholder

Similar activities

Vocabulary Topic 2 A royal mystery

Vocabulary Topic 2 A royal mystery

5th Grade

10 Qs

Tourism Place

Tourism Place

3rd Grade

12 Qs

A Royal Mystery Vocabulary Check

A Royal Mystery Vocabulary Check

5th Grade

10 Qs

Fitur-fitur Antara Muka Perisian Pengaturcaraan Tahun 6

Fitur-fitur Antara Muka Perisian Pengaturcaraan Tahun 6

4th - 6th Grade

12 Qs

2nd half

2nd half

KG - 3rd Grade

10 Qs

OPS Quiz

OPS Quiz

3rd Grade

10 Qs

Journeys Lesson 2 Day 1

Journeys Lesson 2 Day 1

5th Grade

10 Qs

Core Java Quiz-1

Core Java Quiz-1

Assessment

Quiz

English

1st - 5th Grade

Medium

Created by

Vindhya Gaddam

Used 10+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?