What is the output of 'Hello'.length?

Mastering String Manipulation

Quiz
•
Computers
•
University
•
Medium
Udayveer Singh
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Latihan1

Quiz
•
University
20 questions
Recap C++

Quiz
•
University
10 questions
Lab7_Quiz

Quiz
•
University
15 questions
NFA, DFA Definition

Quiz
•
University
10 questions
Recursion Practice, Recursion Practice, Recursion Practice...

Quiz
•
10th Grade - University
10 questions
OOP VB.Net 1

Quiz
•
University
10 questions
Lab7_Quiz_section2

Quiz
•
University
20 questions
Quiz

Quiz
•
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