String Manipulation Review

Quiz
•
Computers
•
11th Grade
•
Hard
Harmeet Kaur
Used 12+ 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
Data Type

Quiz
•
7th - 12th Grade
22 questions
C# start

Quiz
•
11th - 12th Grade
20 questions
BERPIKIR KOMPUTASIONAL

Quiz
•
9th - 12th Grade
21 questions
AP CSA Unit 2 Practise MCQ

Quiz
•
11th Grade
25 questions
Penilaian Harian Bahasa Kotlin SMT 1 2023

Quiz
•
11th Grade
25 questions
List in Python

Quiz
•
11th Grade
25 questions
JavaScript Console & Graphics Review

Quiz
•
9th - 12th Grade
22 questions
AP CSA Primitive Types Practice

Quiz
•
11th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade