Python String
Quiz
•
Computers
•
12th Grade
•
Hard
Jumanah Alqurnah
Used 1K+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
One of the following functions is not used with Python String
Split
Remove
Replace
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose the correct syntax of the split function:
x.split[]
split(x)
x.split(",", 3)
X.SPLIT(",", 3)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose the correct syntax of the replace function:
x.Replace(x)
x.replace(y)
x.replace(3,x)
x.replace("j","3")
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose the correct code to print line of 10 stars using repetition operation:
print("**********")
print("*"*10)
print("*"^10)
print("*"+10)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The correct syntax of the len function for string x:
x.len()
len[x]
LEN[]
len(x)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The correct syntax for converting the string x to uppercase is :
X.upper()
upper(x)
x.UPPER[ ]
x.upper()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The correct syntax for converting the string myname to lowercase is :
myNAME.lower[ ]
myname.lower( )
myname.upper( )
myname_lower(12 )
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
Python Recap
Quiz
•
7th Grade - University
20 questions
Toán tử trong C ++
Quiz
•
10th - 12th Grade
20 questions
Ôn tập học kỳ I
Quiz
•
9th - 12th Grade
15 questions
Asesmen Sumatif
Quiz
•
12th Grade
15 questions
Pseudocode and Flowcharts - Computer Science
Quiz
•
KG - 12th Grade
15 questions
History of Computers
Quiz
•
6th - 12th Grade
16 questions
Python Basics
Quiz
•
KG - University
15 questions
Grade 12-Python selection&iteration
Quiz
•
11th - 12th Grade
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
