
Python Day 10
Authored by Ninitha C
Computers
University

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The unexpected event happened during program execution should be handled by
EXCEPTION
EXPERIMENT
ASSERTION
EXTRAORDINARY
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Output if a=10, b =5?
5.0
Something Went Wrong
Arithmetic Error
2.0
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many except statements can a try-except block have?
zero
one
more than one
more than zero
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When will the else part of try-except-else be executed?
always
when an exception occurs
when no exception occurs
when an exception occurs in to except block
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python code? lst = [1, 2, 3] lst[3]
NameError
ValueError
IndexError
TypeError
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python code? lst = [1, 2, 3] print(t[5])
NameError
ValueError
IndexError
TypeError
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python code print(4 + '3')
NameError
ValueError
IndexError
TypeError
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?