Common Exception Types Flashcards

1
Q

Base class for all exceptions

A

Exception

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Stops the next( ) iterator from continuing

A

StopIteration

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Raised by the sys.exit( ) function

A

SystemExit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Occurs for numeric calculations

A

ArithmeticError

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Division or Modulo by zero

A

ZeroDivisonError

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Applies an operation to mismatched data types

A

TypeError

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Generated by programmer/user

A

KeyboardInterrupt

How well did you know this?
1
Not at all
2
3
4
5
Perfectly