Search Header Logo

Java Summer Internship Quiz-9

Authored by Gnaneshwar Reddy

Professional Development

Professional Development

Used 1+ times

Java Summer Internship Quiz-9
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default value of an object reference (non-primitive variable) if it is not explicitly initialized?


a) 0

b) null

c) false

d) It depends on the variable type.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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


v

b) double

c) float

d) Integer

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is used to store a true/false value in Java?

a) boolean

b) int

d) float

c) byte

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to declare a non-primitive data type in Java?

a) void

b) new

c) class

d) non-primitive

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  • What is the data type of the literal "3.14" in Java?


  • a) float

  • b) double

  • c) int

  • d) long

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  • What is the range of the byte data type in Java?


  • a) -128 to 127

  • b) 0 to 255

  • c) -32768 to 32767

  • d) -2147483648 to 2147483647

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is used to store a single character in Java?


a) char

b) int

c) byte

d) String

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?

Discover more resources for Professional Development