CUET-UG SERIES Computer-science
Exception Handling
7 previous year questions.
Volume: 7 Ques
Yield: Medium
High-Yield Trend
2
2024 5
2023 Chapter Questions 7 MCQs
01
PYQ 2023
medium
computer-science ID: cuet-ug-
The statements inside the ............ block are always executed regardless of whether an exception occurred in the ................. block. What will be the appropriate clause in the above statement respectively?
1
finally, except
2
except, finally
3
finally, try
4
try, finally
02
PYQ 2023
medium
computer-science ID: cuet-ug-
If an error encountered in a method, then what would be one of the correct sequence of the following steps in the exception handling process :
(A) Exception is raised
(B) Create exception object
(C) Searches for method in call stack in reverse sequence
(D) An error encountered in a method
(E) Runtime system searches for exception handler in the current method
Choose the correct answer from the options given below :
(A) Exception is raised
(B) Create exception object
(C) Searches for method in call stack in reverse sequence
(D) An error encountered in a method
(E) Runtime system searches for exception handler in the current method
Choose the correct answer from the options given below :
1
(A), (B), (C), (E), (D)
2
(D), (B),(A) (E), (C)
3
(A), (C), (B),(D), (E)
4
(C), (A), (B), (E), (D)
03
PYQ 2023
medium
computer-science ID: cuet-ug-
If a statement int ('Hello') is written in python, then what kind of exception will it give ?
1
NameError
2
ValueError
3
OSError
4
TypeError
04
PYQ 2023
medium
computer-science ID: cuet-ug-
What kind of build in exception will show by the following code ?
str = ‘Today is holiday’
print(str[20])
str = ‘Today is holiday’
print(str[20])
1
NameError
2
IndentationError
3
IndexError
4
TypeError
05
PYQ 2023
medium
computer-science ID: cuet-ug-
_____used to avoid underflow exception while performing queue operation.
1
ISFULL
2
ISEMPTY
3
LIFO
4
FIFO
06
PYQ 2024
medium
computer-science ID: cuet-ug-
Which of the following are used in python exception handling?
Options:
A) try
B) except
C) finally
D) seek
Choose the correct answer from the options given below:
Options:
A) try
B) except
C) finally
D) seek
Choose the correct answer from the options given below:
1
(A), (B), and (D) only
2
(A), (B), and (C) only
3
(A), (B), (C), and (D)
4
(B), (C), and (D) only
07
PYQ 2024
medium
computer-science ID: cuet-ug-
What is pickling in Python?
1
It is used to deserialize objects, i.e., converting the byte stream to object hierarchy.
2
It is used to serialize objects, i.e., to convert Python object hierarchy to byte stream.
3
It is used to move the file pointer to a specific location.
4
It is used in exception handling.
About Exception Handling - CUET-UG
Exception Handling is a vital chapter for CUET-UG aspirants. Mastering the concepts covered in this chapter is essential for securing a top rank.
By rigorously practicing the previous year questions associated with this chapter, you can identify high-yield topics, understand the examiner's perspective, and boost your confidence during the actual exam.
Frequently Asked Questions
Why focus on Exception Handling PYQs?
Analyzing PYQs for this specific chapter reveals the most frequently tested concepts and the typical complexity of questions, allowing you to tailor your study plan efficiently.
How to best use this analysis?
Review the topic breakdown to see which sub-topics within Exception Handling carry the most weight. Then, tackle the questions iteratively to solidify your understanding.