MCQ-2 Java CSE Q

MCQ-2 Java CSE Q

University

17 Qs

quiz-placeholder

Similar activities

Sistem Informasi Manajemen

Sistem Informasi Manajemen

University

20 Qs

Data Structure & Algo - Prelim Long Quiz

Data Structure & Algo - Prelim Long Quiz

University

21 Qs

Week 5: Test your understanding part 1

Week 5: Test your understanding part 1

University

20 Qs

The AI Shield

The AI Shield

University

15 Qs

Javascript

Javascript

University

12 Qs

data structures1

data structures1

University

20 Qs

Quiz on List and Tuples

Quiz on List and Tuples

University

16 Qs

Quiz Pemrograman Perangkat Bergerak 2

Quiz Pemrograman Perangkat Bergerak 2

12th Grade - University

20 Qs

MCQ-2 Java CSE Q

MCQ-2 Java CSE Q

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Amit Mandal

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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?