
String Methods Quiz

Quiz
•
Computers
•
12th Grade
•
Hard
Sáng Nguyễn
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the method charAt(index) return?
A new string created from UTF-16 code units
The index of the first occurrence of a value
The character at the specified index
The Unicode of the character
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is returned by charCodeAt(index) if the index is out of bounds?
An empty string
The length of the string
The character at the last index
NaN
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does String.fromCharCode(...) do?
Replaces a substring in a string
Finds the last occurrence of a value
Converts a string to lowercase
Returns a string from UTF-16 code units
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the indexOf(searchValue[, fromIndex]) method return if the value is not found?
0
-1
null
undefined
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the replace(searchValue, newValue) method?
To convert a string to uppercase
To split a string into an array
To replace matches of a pattern with a new value
To find the index of a character
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the split(separator[, limit]) method return?
A new string
An array of substrings
The length of the string
The first character of the string
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the substring(indexStart[, indexEnd]) method do?
Returns a new substring from the specified start index
Replaces a substring in the string
Converts the string to lowercase
Finds the last index of a character
Create a free account and access millions of resources
Similar Resources on Wayground
16 questions
Java String Methods in the Confines

Quiz
•
12th Grade
20 questions
Python Programming Quiz

Quiz
•
10th Grade - University
15 questions
JAVA: Level-1

Quiz
•
5th - 12th Grade
19 questions
Java Base

Quiz
•
9th - 12th Grade
10 questions
(Do Now) Excel Functions Quiz

Quiz
•
12th Grade
15 questions
AQA Computer Science GCSE - 3.1 Fundamentals of algorithms

Quiz
•
10th - 12th Grade
20 questions
Arrays in Java

Quiz
•
9th - 12th Grade
18 questions
Quiz on Interpolated Strings and String Manipulation in C#

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