W10_PASS(W9)_ExceptionHandling

W10_PASS(W9)_ExceptionHandling

1st - 3rd Grade

10 Qs

quiz-placeholder

Similar activities

Lógica de Programación

Lógica de Programación

1st Grade

10 Qs

Intro to IF statements

Intro to IF statements

KG - University

13 Qs

IT PRE TEST / POST TEST

IT PRE TEST / POST TEST

3rd - 8th Grade

15 Qs

Google Docs for ITC

Google Docs for ITC

3rd - 9th Grade

11 Qs

c# повторение

c# повторение

3rd Grade

10 Qs

Arduino 1

Arduino 1

1st Grade

15 Qs

Programming - Output

Programming - Output

KG - 12th Grade

12 Qs

Estándar ANSI/TIA/EIA-568-B

Estándar ANSI/TIA/EIA-568-B

1st - 3rd Grade

11 Qs

W10_PASS(W9)_ExceptionHandling

W10_PASS(W9)_ExceptionHandling

Assessment

Quiz

Computers

1st - 3rd Grade

Practice Problem

Hard

Created by

Shu Li

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the two phases of program execution when talking about errors?

Error Identifying, Error Reporting

Error Reporting, Error Manipulating

Error Identifying, Error Handling

Error Reporting, Error Handling

Answer explanation

Error Reporting the phase of execution where an error is identified within the program. Error Handling is the phase of execution where an error has already been identified within the program and this part of the program is responsible for handling or fixing it.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the parent class of all the exception classes?

Exception

Error

Throwable

RunTimeException

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A checked exception should be handle with a try-catch or declared using

throw clause

finally clause

throws clause

catch clause

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If we do not handle an exception the program execution will continue after the exception line.

true

false

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Unchecked exception is encountered when there is a possibility for an operation to fail.

true

false

Answer explanation

Checked exception is encountered when there is a possibility for an operation to fail. Such program error could occur due to programmer incorrect input or missing validation, etc.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Null Pointer Exception is considered as unchecked exception.

true

false

Answer explanation

More exception such as Index out of Bounds Exception, Input Mismatch Exception are all belongs to unchecked exceptions which likely cause by programmer oversight or incorrect input.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The finally block is executed only when a exception is thrown.

true

false

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?

Discover more resources for Computers