
Python_MCQ_2
Authored by Dinesh Kushwaha
Information Technology (IT)
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
How many except statements can a try-except block have?
zero
one
more than one
more than zero
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose t = (1, 2, 4, 3), which of the following is incorrect?
print(t[3])
t[3] = 45
print(max(t))
print(len(t))
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following Python code?
(1, 2)
(1, 2, 4)
(2, 4)
(2, 4, 3)
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following Python code?
[1] [2] [3]
[1] [1, 2] [1, 2, 3]
[1, 2, 3]
1 2 3
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following Python code?
4
5
8
12
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python code?
True
False
Error
None
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will be the output of the following Python code?
30
24
33
12
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 Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?