Search Header Logo

MCQ-2 Java CSE Q

Authored by Amit Mandal

Computers

University

Used 1+ times

MCQ-2 Java CSE Q
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

17 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When does Exceptions in Java arises in code sequence?

Run Time
Compilation Time
Can Occur Any Time
None of the mentioned

2.

MULTIPLE CHOICE QUESTION

2 mins • Ungraded

Media Image

What will be the output of the following Java program?

Hello
World
HelloWorld
Hello World

3.

MULTIPLE CHOICE QUESTION

2 mins • Ungraded

Media Image

What will be the output of the following Java program?

A
B
AC
BC

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What will be the output of the following Java program?

0
05
Compilation Error
Runtime Error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Exception is found in which package in java

java
java.io
java.util
java.lang

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which statement is true?

The Error class is a RuntimeException.
Any statement that can throw an Error must be enclosed in a try block.
catch(X x) can catch subclasses of X where X is a subclass of Exception.
Any statement that can throw an Exception must be enclosed in a try block.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these exceptions will occur if we try to access the index of an array beyond its length?

ArrayException
ArithmeticException
ArrayIndexException
ArrayIndexOutOfBoundsException

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 Computers