
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
10 questions
Computational Thinking

Quiz
•
8th - 12th Grade
14 questions
Understanding Python Basics

Quiz
•
8th Grade - University
8 questions
T3 Y7 Grasshopper App

Quiz
•
7th - 9th Grade
10 questions
Паскаль ABC (1)

Quiz
•
7th - 9th Grade
10 questions
Unit 1 Post Test: Basic Python

Quiz
•
9th - 12th Grade
5 questions
Printing and Variables in JavaScript

Quiz
•
9th - 12th Grade
9 questions
Quiz sobre a aula passada!

Quiz
•
9th - 12th Grade
12 questions
JavaScript

Quiz
•
9th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade