
M3L7. Working with strings and cookies
Authored by THAYANANTH KUMARESAN
Computers
8th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a string in programming?
A type of boolean
A collection of objects
A sequence of characters
A set of numbers
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you get a character from a string by index?
Accessing it by index
Using the findChar function
Iterating through the string
Using the getChar method
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to get a substring from a string?
substring
splice
split
slice
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What method is used to replace all occurrences of a certain character in a string?
replaceChar
replaceAll
updateChar
switchChar
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you check for the presence of a substring within a string?
searchSubstring
findSubstring
checkSubstring
includes
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to split a string into an array?
separate
divide
break
split
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What method allows you to join array elements into a single string?
concat
merge
combine
join
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?