Search Header Logo

Java

Authored by N191080 SANKARAABHIRAM

Other

University

Used 1+ times

Java
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

1 min • 1 pt

Media Image

Find The Output of the Program ??

Compilation error

Runtime error

5 6 5 6

5 6 5

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What is the Output ?

1

120

0

None Of These

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Guess The Output ?

2 2

3 3

Compilation Error

Runtime Error

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt


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

The reference of the Array

The Copy of The Array

Copy of the first element

Length of the Array

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

101

100

None

Compilation Error

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

public class Main {

public static void main(String[] args) {

try {

int[] myNumbers = {1, 2, 3};

System.out.println(myNumbers[1]);

int a = 2 / myNumbers[4];

System.out.println(a);

} catch (Exception e) {

System.out.println("Index out of bounds.");

} finally {

System.out.println("The 'try catch' is finished.");

}

}

}

Find the Output

The 'try catch' is finished.

2

2

Index out of bounds.

The 'try catch' is finished.

None of These

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image


public class MainClass

{

public static void main(String[] args)

{

C c = new C();

c.firstMethod();

c.secondMethod();

c.thirdMethod();

}

} Find the output ?

FIRST

SECOND

THIRD

FIRST

THIRD

THIRD

THIRD

FIRST

THIRD

SECOND

FIRST

THIRD

THIRD

THIRD

FIRST

SECOND

THIRD

FIRST

THIRD

THIRD

FIRST

THIRD

SECOND

FIRST

THIRD

THIRD

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?