
5_sem
Authored by AKSV AKSV
Information Technology (IT)
University
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of print(2 ** 3 ** 2)?
Answer explanation
Exponentiation is right-associative, so 2 ** (3**2) = 512
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is immutable?
Answer explanation
Tuple is immutable
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which module in Python supports regular expressions?
Answer explanation
Python uses 're' module
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default recursion limit in Python?
Answer explanation
Default recursion depth is 1000
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used for function annotations?
Answer explanation
Arrow (->) is used for return type annotation
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
a=[1,2,3]
b=a
b.append(4)
print(a,b)
[1,2,3][1,2,3,4]
[1,2,3,4],[1,2,3,4]
[1,2,3,4][1,2,3]
[1,2,3,4][1,2,3,4]
Answer explanation
Always returns string
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is Python’s built-in data type for arbitrary precision integers?
Answer explanation
int handles arbitrary precision
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?