Python 04112023

Python 04112023

University

5 Qs

quiz-placeholder

Similar activities

JRB2 Quiz 4

JRB2 Quiz 4

University

10 Qs

ADPROG1

ADPROG1

University

10 Qs

Java Quiz1

Java Quiz1

University

10 Qs

Java Juggling

Java Juggling

University

10 Qs

Understanding Java Exceptions

Understanding Java Exceptions

University

8 Qs

Java 1D Arrays

Java 1D Arrays

University

10 Qs

Exception handling

Exception handling

University

6 Qs

exception

exception

University

10 Qs

Python 04112023

Python 04112023

Assessment

Quiz

Computers

University

Hard

Created by

Safa Massad

Used 1+ times

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Exception Handling is a method we use to let the program stop when an error occurs.

true

false

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

we catch exceptions and handle them using ____________ block

try

except

else

finally

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The ____________ clause contains the code that can raise an exception

except

else

try

finally

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The _____________ clause contains the code lines that handle the exception

finally

except

try

else

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The __________ block of code that should be executed when no exceptions are raised within a try block

try

except

finally

else