Strings in Python
Quiz
•
Computers
•
12th Grade
•
Medium
Thomas Martinez
Used 2+ times
FREE Resource
Enhance your content
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
Imagen digital MS
Quiz
•
9th - 12th Grade
20 questions
Sains Komputer Tingkatan 5 - 1.3.1 Menerangkan get logik
Quiz
•
1st Grade - Professio...
20 questions
Teknologi Informasi dan Komunikasi
Quiz
•
8th Grade - University
15 questions
SIMKOM
Quiz
•
12th Grade - Professi...
20 questions
2324tx6
Quiz
•
9th - 12th Grade
20 questions
QUIZ BAB 4: SISTEM OPERASI
Quiz
•
8th Grade - University
15 questions
PTS Algoritma dan Pemrograman
Quiz
•
9th - 12th Grade
15 questions
1.1.1 The structure and function of the processor
Quiz
•
11th Grade - University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade