Quiz on Java Programming with E-Certificate

Organizer : The digital adda

A potent general-purpose programming language is Java. It is utilised to create embedded devices, massive data processing, desktop and mobile applications, and more. Java is one of the most widely used programming languages, with 3 billion devices running it globally, according to Oracle, the corporation that owns Java.

About the Quiz 

Get Java Programming Certificate from The Digital Adda which you can share in the Certifications section of your LinkedIn profile, on printed resumes, CVs, or other documents.

Exam Details
  • Format: Multiple Choice Question
  • Questions: 10
  • Passing Score: 8/10 or 80%
  • Language: English

Apply Link

Number of primitive data types in Java are?
*

10/10

6

7

8

9

What is the size of float and double in java?

*

10/10

32 and 64

32 and 32

64 and 64

64 and 32

Find the output of the following code.
int Integer = 24; char String = ‘I’; System.out.print(Integer); System.out.print(String);
*

10/10

Compile error

Throws exception

I

24 I

Select the valid statement.

*

10/10

char[] ch = new char(5)

char[] ch = new char[5]

char[] ch = new char()

char[] ch = new char[]

When an array is passed to a method, what does the method receive?

*

10/10

The reference of the array

A copy of the array

Length of the array

Copy of first element

Select the valid statement to declare and initialize an array.

*

10/10

int[] A = {}

int[] A = {1, 2, 3}

int[] A = (1, 2, 3)

int[][] A = {1,2,3}

Arrays in java are-

*

10/10

Object references

objects

Primitive data type

None

When is the object created with new keyword?

*

10/10

At run time

At compile time

Depends on the code

None

In which of the following is toString() method defined?

*

10/10

java.lang.Object

java.lang.String

java.lang.util

None

compareTo() returns

*

10/10

True

False

An int value

None

error: Content is protected !!
Scroll to Top