String Manipulation Review

Quiz
•
Computers
•
11th Grade
•
Hard
Harmeet Kaur
Used 15+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does traversing a string mean?
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 Wayground
20 questions
JAVA FUNDAMENTALS

Quiz
•
9th - 12th Grade
25 questions
Quiz Bahasa C

Quiz
•
10th Grade - University
21 questions
AP CSP Unit 5 Ch 1 Quiz

Quiz
•
9th - 12th Grade
21 questions
Programming - Python (year 12)

Quiz
•
9th - 12th Grade
20 questions
LETS PLAY QUIZ - PYTHON CBSE CLASS XII

Quiz
•
11th - 12th Grade
25 questions
CSP Python Review

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

Quiz
•
10th Grade - University
25 questions
Python Test

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade