What does traversing a string mean?
String Manipulation Review

Quiz
•
Computers
•
11th Grade
•
Hard
Harmeet Kaur
Used 11+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Reversing a string
Accessing the individual characters of a string
Counting the number of vowels in a string
Concatenating two strings
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the ord() function do in Python?
Splits the string based on a delimiter
Replaces old text with new text in a string
Returns the ordinal position of a single character
Counts the number of characters in a string
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the code fragment: print('Tom' + 'Jerry')?
JerryTom
Tom & Jerry
Jerry & Tom
TomJerry
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the isdigit() function do in Python?
Returns True if all the characters in the string are in capital letters
Returns True if all the characters in the string are in small letters
Returns True if the string contains only spaces
Returns True if all the characters in the string are digits
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the code fragment: print('Hello World'.upper().lower())?
hELLO wORLD
Hello World
hello world
HELLO WORLD
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the split() function in Python?
Counts the number of occurrences of a word in the string
Converts the entire string to lowercase
Converts the entire string to uppercase
Splits the string based on a delimiter and stores the result in a list
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the code fragment: print('0123456789'[3], ',', '012', '-', '234')?
3, 012, 234, 345
3, 012, 234, 012
3, 012, 234, 234
3, 012, 234
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
Python Basics (CodeHS)

Quiz
•
7th - 12th Grade
20 questions
Python Programming Quiz

Quiz
•
9th Grade - University
20 questions
Grade 7 Python Programming Quiz

Quiz
•
7th Grade - University
22 questions
CodeHS AP CSP Unit 3 Review

Quiz
•
11th - 12th Grade
25 questions
Java Review

Quiz
•
9th Grade - University
30 questions
Python Beginner

Quiz
•
6th - 12th Grade
20 questions
Python Basics Review (TSK)

Quiz
•
9th - 12th Grade
20 questions
Python Recap

Quiz
•
7th Grade - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University