CUET-UG SERIES Computer-science
Exceptions In Python
2 previous year questions.
Volume: 2 Ques
Yield: Medium
High-Yield Trend
2
2023 Chapter Questions 2 MCQs
01
PYQ 2023
medium
computer-science ID: cuet-ug-
Which of the following statements are correct?
A. Exception Handling can be done for only user-defined exceptions but not for built-in exceptions.
B. In python exception handling, else clause is optional.
C. Try statement in python must have a finally clause.
D. Statements in finally clause are always executed regardless of whether an exception has occurred in try block or not.
E. Except block will be executed only if some exception is raised in try block.
Choose the correct answer from the options given below:
A. Exception Handling can be done for only user-defined exceptions but not for built-in exceptions.
B. In python exception handling, else clause is optional.
C. Try statement in python must have a finally clause.
D. Statements in finally clause are always executed regardless of whether an exception has occurred in try block or not.
E. Except block will be executed only if some exception is raised in try block.
Choose the correct answer from the options given below:
1
A, B and D only
2
D and E only
3
C, D and E only
4
B, D and E only
02
PYQ 2023
medium
computer-science ID: cuet-ug-
Which one of the following is not a built-in-exception in Python?
1
ValueError
2
EOFError
3
StackError
4
IndexError