Splitting, Concatenating, and Joining Strings in Python
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Sangameshwar Biradar
Used 20+ times
FREE Resource
Enhance your content in a minute
6 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
20 sec • 1 pt
In Python, strings are…
char arrays
changeable
immutable
str objects
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
The minsplit parameter to split() specifies the minimum number of splits to make to the input string.
False
True
3.
MULTIPLE SELECT QUESTION
20 sec • 1 pt
Which of the following would separate a string input_string on the first 2 occurences of the letter “e”?
'e'.split(input_string, maxsplit=2)
input_string.split('e', 2)
input_string.split('e', maxsplit=2)
'e'.split(input_string, 2)
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Python strings have a property called “immutability.” What does this mean?
Strings can’t be divided by numbers
You can update a string in Python with concatenation
Strings in Python can be represented as arrays of char S
Strings in Python can’t be changed
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
If you want to transform a list of strings input_list into a single string with a comma between each item, which of the following would you give as the input to join()?
string
' , '
str
input_list
6.
MULTIPLE SELECT QUESTION
20 sec • 1 pt
Which of the following mathematical operators can be used to concatenate strings:
*
/
-
+
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 Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
1ª Recuperação - 3° Trim. - Pensamento Computacional - 9º ano
Quiz
•
9th Grade - University
7 questions
ESBrotherX_Medical AI_Lecture
Quiz
•
University
10 questions
MI MÉTODO
Quiz
•
University
7 questions
Fundamental of Information Systems
Quiz
•
University
10 questions
Quizz_Algoritma, Pemrograman, dan RPL_Accifence
Quiz
•
University
10 questions
Comunicación y otras habilidades.
Quiz
•
University
10 questions
Introducción a la Inteligencia de Negocios
Quiz
•
University
11 questions
SENA
Quiz
•
University - Professi...
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
