Java Summer Internship Quiz-9

Java Summer Internship Quiz-9

Professional Development

10 Qs

quiz-placeholder

Similar activities

GFG Quiz

GFG Quiz

11th Grade - Professional Development

10 Qs

Soft skills

Soft skills

Professional Development

10 Qs

FR PGSD

FR PGSD

Professional Development

15 Qs

IT_SUBBOTNIK_2

IT_SUBBOTNIK_2

University - Professional Development

7 Qs

SCS-Day 2019 Quiz Contest

SCS-Day 2019 Quiz Contest

Professional Development

15 Qs

OOP QUIZ ON TYPES,Static keyword

OOP QUIZ ON TYPES,Static keyword

Professional Development

15 Qs

Pictograchievements

Pictograchievements

Professional Development

13 Qs

Google Display Network

Google Display Network

Professional Development

10 Qs

Java Summer Internship Quiz-9

Java Summer Internship Quiz-9

Assessment

Quiz

Professional Development

Professional Development

Medium

Created by

Gnaneshwar Reddy

Used 1+ times

FREE Resource

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

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?

Discover more resources for Professional Development