
Mastering String Manipulation
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
Udayveer Singh
Used 1+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of 'Hello'.length?
Hello World
6
4
5
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you convert a string to lowercase in JavaScript?
string.convertToLower()
string.toLowerCase()
string.toLower()
string.lowercase()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What method would you use to find the index of a character in a string?
Use the 'locate' method.
Use the 'find' method.
Use the 'search' method.
Use the 'indexOf' method.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you concatenate two strings in Python?
string1.append(string2)
string1 & string2
string1 + string2
string1.concat(string2)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the 'strip()' method do in Python?
The 'strip()' method removes leading and trailing whitespace from a string.
The 'strip()' method splits a string into a list of words.
The 'strip()' method converts a string to uppercase.
The 'strip()' method adds whitespace to a string.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you check if a string contains a substring in Java?
Check the length of the string and substring for equality.
Use the 'indexOf' method: string.indexOf(substring) > -1.
Use the 'contains' method: string.contains(substring).
Use a regular expression: string.matches(substring)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of 'abc'.replace('a', 'z')?
zbc
abc
zab
bbc
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
20 questions
DATASET'24 Quizz (Round 1)
Quiz
•
University
20 questions
Web Development and Programming
Quiz
•
University
10 questions
TIU Quiz-9
Quiz
•
University
10 questions
Python Yazılım Dilleri Soruları
Quiz
•
University
10 questions
ECM3434 Business Analysis 1 - Business process modelling
Quiz
•
University
15 questions
python basics
Quiz
•
11th Grade - University
10 questions
Quiz CodeIgniter 4
Quiz
•
University
15 questions
Шаблоны проектирования
Quiz
•
University
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
