MCQ-2 Java CSE Q

MCQ-2 Java CSE Q

University

17 Qs

quiz-placeholder

Similar activities

IF Pagi - Quiz 2

IF Pagi - Quiz 2

University

20 Qs

Threads, Processes, and Programs

Threads, Processes, and Programs

University

20 Qs

Threads and Processes

Threads and Processes

University

20 Qs

Object Oriented Programming

Object Oriented Programming

University

13 Qs

Java thread - MCQ

Java thread - MCQ

University

18 Qs

Java Exception Handling

Java Exception Handling

University

15 Qs

OOP - session 2.1 - JVM, Array, Stack

OOP - session 2.1 - JVM, Array, Stack

University

21 Qs

MCQ-2 Java CSE Q

MCQ-2 Java CSE Q

Assessment

Quiz

Computers

University

Medium

Created by

Amit Mandal

Used 1+ times

FREE Resource

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

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?