
Quiz-3
Authored by Pravat Jena
Computers
Professional Development
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does it mean that strings are immutable in Python?
Strings can be modified in place
B Strings cannot be created s
Strings cannot be changed after creation
Strings cannot be used in loop
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of s = "Python"; print(s[: : -2])?
Ph
y
P
None of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does bin(10) return?
"10"
"0b1010"
"1010"
"0x1010"
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of "abc" * 3 in Python?
abcabcabc
abc3
Error
9
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method converts the first character of a string to uppercase and the rest to lowercase?
upper()
capitalize()
title()
lower()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
text = "FDP:-Python@E310"
print(text[1:4])
DP:-
FDP:
:-Py
@E31
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
word = "DataScience"
print(word[-6:-2])
ence
Scie
ienc
cien
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?