15 Exceptions questions from the Python bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.
Free to start: the 2-minute IT readiness check — six questions and a result.
A.the optional try-block section that runs only when no exception was raised in the protected code
B.the construct that runs guarded code and catches raised errors in matching handler clauses
C.the syntax that re-raises an error while explicitly chaining it to an originating cause for clearer tracebacks
D.the clause whose body always executes on the way out of a try block, whether or not an error occurred
Answer + AI explanation with Pro
2. Which term means: "the construct that runs guarded code and catches raised errors in matching handler clauses"?
Junior
A.try/except
B.raise from
C.finally
D.else clause
Answer + AI explanation with Pro
3. Which statement is correct?
Junior
A.try/except — the 3.11 container that bundles multiple unrelated errors, handled selectively with except* syntax
B.try/except — the optional try-block section that runs only when no exception was raised in the protected code
C.try/except — the clause whose body always executes on the way out of a try block, whether or not an error occurred
D.try/except — the construct that runs guarded code and catches raised errors in matching handler clauses
Answer + AI explanation with Pro
4. What is finally?
Junior
A.the syntax that re-raises an error while explicitly chaining it to an originating cause for clearer tracebacks
B.the clause whose body always executes on the way out of a try block, whether or not an error occurred
C.the 3.11 container that bundles multiple unrelated errors, handled selectively with except* syntax
D.the optional try-block section that runs only when no exception was raised in the protected code
Answer + AI explanation with Pro
5. Which term means: "the clause whose body always executes on the way out of a try block, whether or not an error occurred"?
Junior
A.ExceptionGroup
B.finally
C.try/except
D.else clause
Answer + AI explanation with Pro
6. Which statement is correct?
Junior
A.finally — the 3.11 container that bundles multiple unrelated errors, handled selectively with except* syntax
B.finally — the optional try-block section that runs only when no exception was raised in the protected code
C.finally — the construct that runs guarded code and catches raised errors in matching handler clauses
D.finally — the clause whose body always executes on the way out of a try block, whether or not an error occurred
Answer + AI explanation with Pro
7. What is else clause?
Mid
A.the syntax that re-raises an error while explicitly chaining it to an originating cause for clearer tracebacks
B.the clause whose body always executes on the way out of a try block, whether or not an error occurred
C.the optional try-block section that runs only when no exception was raised in the protected code
D.the 3.11 container that bundles multiple unrelated errors, handled selectively with except* syntax
Answer + AI explanation with Pro
8. Which term means: "the optional try-block section that runs only when no exception was raised in the protected code"?
Mid
A.ExceptionGroup
B.try/except
C.finally
D.else clause
Answer + AI explanation with Pro
9. Which statement is correct?
Mid
A.else clause — the optional try-block section that runs only when no exception was raised in the protected code
B.else clause — the syntax that re-raises an error while explicitly chaining it to an originating cause for clearer tracebacks
C.else clause — the 3.11 container that bundles multiple unrelated errors, handled selectively with except* syntax
D.else clause — the construct that runs guarded code and catches raised errors in matching handler clauses
Answer + AI explanation with Pro
10. What is raise from?
Mid
A.the syntax that re-raises an error while explicitly chaining it to an originating cause for clearer tracebacks
B.the clause whose body always executes on the way out of a try block, whether or not an error occurred
C.the construct that runs guarded code and catches raised errors in matching handler clauses
D.the optional try-block section that runs only when no exception was raised in the protected code
Answer + AI explanation with Pro
11. Which term means: "the syntax that re-raises an error while explicitly chaining it to an originating cause for clearer tracebacks"?
Mid
A.raise from
B.try/except
C.finally
D.else clause
Answer + AI explanation with Pro
12. Which statement is correct?
Mid
A.raise from — the clause whose body always executes on the way out of a try block, whether or not an error occurred
B.raise from — the construct that runs guarded code and catches raised errors in matching handler clauses
C.raise from — the syntax that re-raises an error while explicitly chaining it to an originating cause for clearer tracebacks
D.raise from — the optional try-block section that runs only when no exception was raised in the protected code
Answer + AI explanation with Pro
13. What is ExceptionGroup?
Senior
A.the syntax that re-raises an error while explicitly chaining it to an originating cause for clearer tracebacks
B.the 3.11 container that bundles multiple unrelated errors, handled selectively with except* syntax
C.the clause whose body always executes on the way out of a try block, whether or not an error occurred
D.the construct that runs guarded code and catches raised errors in matching handler clauses
Answer + AI explanation with Pro
14. Which term means: "the 3.11 container that bundles multiple unrelated errors, handled selectively with except* syntax"?
Senior
A.ExceptionGroup
B.else clause
C.raise from
D.try/except
Answer + AI explanation with Pro
15. Which statement is correct?
Senior
A.ExceptionGroup — the construct that runs guarded code and catches raised errors in matching handler clauses
B.ExceptionGroup — the optional try-block section that runs only when no exception was raised in the protected code
C.ExceptionGroup — the syntax that re-raises an error while explicitly chaining it to an originating cause for clearer tracebacks
D.ExceptionGroup — the 3.11 container that bundles multiple unrelated errors, handled selectively with except* syntax
Answer + AI explanation with Pro
Free to start
Start with a free readiness check
Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every Exceptions question come with Pro.