
JavaScript Strings

Quiz
•
Computers
•
9th Grade
•
Medium
Mark Galesi
Used 13+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
var len = "jump it!".length;
What is the value of len?
8
7
9
6
This code does not compile.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
var x = "quarantine".indexOf("a");
What is the value of x?
4
3
2
This code does not compile.
StringIndexOutOfBoundsException
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
var s = "whatever".substring(1,4);
What is the value of s?
"hate"
"hat"
"whate"
"what"
StringIndexOutOfBoundsException
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
var p = "Go Paw Patrol!".indexOf("p");
What is the value of p? (Case matters)
0
4
3
-1
This code will not compile.
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
var s = "cool cat".substring(6,"cool cat".length);
What is the value of s?
"cat"
"at"
"cool c"
This code does not compile.
StringIndexOutOfBoundsException
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
var s = "good job".substring(3, 9);
What is the value of s?
"d job"
"od job"
"d jo"
"od jo"
StringIndexOutOfBoundsException
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which type of value is returned from the length function?
decimal
word
integer
true/false
Create a free account and access millions of resources
Similar Resources on Wayground
11 questions
Trabajando con ArrayList

Quiz
•
9th - 12th Grade
10 questions
tin 8 bài 4

Quiz
•
6th - 9th Grade
12 questions
C++ References

Quiz
•
6th - 12th Grade
10 questions
Diplo Variables

Quiz
•
1st - 10th Grade
10 questions
Python Fundamentals for Grade 9 Students

Quiz
•
9th Grade
12 questions
Define Variables

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

Quiz
•
9th Grade
12 questions
Python

Quiz
•
7th - 9th 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
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade