
Python strings
Authored by dhruv patel
Computers
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What letter will be printed on the screen after running this code:
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What output will this code produce?
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What output will this code produce?
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
word = "amazing"
For the given string if we run word[2:5] , what would the result be?
mazi
mazin
azi
azin
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is not a valid string function?
isalphanumeric
isspace
islower
isalnum
6.
FILL IN THE BLANKS QUESTION
1 min • 1 pt
string="HELlo"
What will be the result of string.isupper()?
(a)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is printed by the following statement?
print("P" not in "APCSP")
True
False
Error
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?