A44 OOP Exception Handling

A44 OOP Exception Handling

Professional Development

7 Qs

quiz-placeholder

Similar activities

Scrum Quiz

Scrum Quiz

Professional Development

10 Qs

DL Refresher

DL Refresher

KG - Professional Development

10 Qs

CSH-15-06-2021

CSH-15-06-2021

Professional Development

10 Qs

Sistemas operacionais 2

Sistemas operacionais 2

Professional Development

10 Qs

Mech 3

Mech 3

Professional Development

10 Qs

java

java

Professional Development

10 Qs

Topic Quiz-1 : Python Basics

Topic Quiz-1 : Python Basics

Professional Development

10 Qs

Sains Komputer Tingkatan 4 - 3.1.1 Mengkaji keperluan intera

Sains Komputer Tingkatan 4 - 3.1.1 Mengkaji keperluan intera

1st Grade - Professional Development

10 Qs

A44 OOP Exception Handling

A44 OOP Exception Handling

Assessment

Quiz

Computers

Professional Development

Practice Problem

Hard

Created by

Chavdar Dimitrov

Used 11+ times

FREE Resource

AI

Enhance your content in a minute

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

7 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

30 sec • 3 pts

The checked Exceptions should inherit from the following classes:

Throwable

RuntimeException

Object

Exception

2.

MULTIPLE SELECT QUESTION

30 sec • 3 pts

The unchecked Exceptions should inherit from the following classes:

Throwable

RuntimeException

Object

Exception

3.

REORDER QUESTION

1 min • 3 pts

What is correct hierarchal order of the following classes?

(Start from the most general to the most specific)

Object

Exception

RuntimeException

Throwable

ArithmeticException

4.

MATCH QUESTION

1 min • 3 pts

Match the following

Error

Compile-time exceptions

Unchecked

Exception

Runtime exceptions

Checked Exception

Irrecoverable

5.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

Media Image

If the input is valid int number what will be printed?

Enter a number to divide:

Enter a number to divide:

User input done.

Enter a number to divide:

Invalid user input ! Integer number is expected.

User input done.

Nothing will be printed

6.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

Media Image

What is the result of the program?

Compilation error

Invalid user input ! Dividing by 0 is not allowed.

I'm first!

No I'm first!

7.

MATCH QUESTION

1 min • 3 pts

Match the following

rethrow in catch block

Don't ignore/swallow exceptions

specific exception first

Don't use exceptions

leave empty catch block

Catch the most

when if-else can be used

Don't log and

It will not only catch all exceptions, it will also catch all errors

Don't catch Throwable

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?