
String Manipulation Quiz

Quiz
•
Computers
•
12th Grade
•
Hard
Mark Halfyard
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of string manipulation?
To extract characters from a string
To create a new string
To change the font of a string
To add colors to a string
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What command is used to get the length of a string?
len(string)
string.len()
length(string)
string.length()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which command is used to convert a string to uppercase?
string.uppercase()
toUpperCase(string)
string.upper()
string.toUpper()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the substring command do?
Returns the entire string
Returns part of the string
Reverses the string
Counts the number of characters in the string
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How is concatenation of strings achieved?
Using the join command
Using the merge command
Using the append command
Using the addition or plus operator
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the ASC command?
Returns the character from the ASCII number
Counts the number of characters in a string
Converts a string to lowercase
Returns the ASCII value of a character
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Python, what is the equivalent of string.length()?
len(string)
string.len()
string.length
length(string)
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Topic 3 & 4 Practice - ArrayList and String Methods

Quiz
•
12th Grade
7 questions
Java String Methods

Quiz
•
9th - 12th Grade
10 questions
MIT App Inventor Basics

Quiz
•
9th - 12th Grade
5 questions
Строки и их методы

Quiz
•
12th Grade
15 questions
AP CSP Unit 4: Lesson 15: Assessment Day

Quiz
•
9th - 12th Grade
10 questions
Python Strings

Quiz
•
12th Grade
9 questions
Programming with Karel

Quiz
•
9th - 12th Grade
14 questions
AP CSA Variables and Operators

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

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade