
python
Authored by Avakaza Technologies
Engineering
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
19 questions
Show all answers
1.
FILL IN THE BLANKS QUESTION
1 min • 1 pt
1. What will be the output of the following code?
x = 5
y = "5"
print(x + int(y))
(a)
2.
FILL IN THE BLANKS QUESTION
1 min • 1 pt
What will be the output of the following expression?
print(2*3 **2)
(a)
3.
FILL IN THE BLANKS QUESTION
1 min • 1 pt
What will be the output of the following code?
s = "Python"
print(s[-2])
(a)
4.
FILL IN THE BLANKS QUESTION
1 min • 1 pt
What does the following code output?
s = "hello world"
print(s.title())
(a)
5.
FILL IN THE BLANKS QUESTION
1 min • 1 pt
What will be the output of the following code?
numbers = [10, 20, 30]
numbers.append(40)
print(numbers)
(a)
6.
FILL IN THE BLANKS QUESTION
1 min • 1 pt
What will be the result of the following code?
lst = [1, 2, 3, 4, 5]
print(lst[1:4])
(a)
7.
FILL IN THE BLANKS QUESTION
1 min • 1 pt
What will be the output of the following code?
d = {"a": 1, "b": 2}
print(d.get("c", 3))
(a)
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?