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

Java Exception Handling

Java Exception Handling

University

15 Qs

Templates,Exceptions,Inheritance in C++ Quiz

Templates,Exceptions,Inheritance in C++ Quiz

University

20 Qs

OOP - session 2.1 - JVM, Array, Stack

OOP - session 2.1 - JVM, Array, Stack

University

21 Qs

MS Core Java Quiz-2 2023

MS Core Java Quiz-2 2023

University

12 Qs

Selection-Multiple

Selection-Multiple

12th Grade - University

20 Qs

Intro to Java Q1 Assessment

Intro to Java Q1 Assessment

9th Grade - University

16 Qs

Hybrid Web Quiz

Hybrid Web Quiz

University - Professional Development

12 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?