Which of the following is TRUE about lists.
Javascript Lists Lecture Knowledge Check

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Used 10+ times
FREE Resource
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
They can't change size
They can only hold numbers
The order of items is not kept
Lists can be stored in a variable
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
In a list each item is assigned a number in that list. That number is called the ________?
location
index
identifier
list code
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
given the list
var names = ["Ann", "Bob", "Chuck", "Dana"];
which name is at names[2]?
Ann
Bob
Chuck
Dana
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
given
var nums = [3, 4, 6, 2, 9, 1];
what is
nums[1] + nums[3]
4
5
6
9
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
given the list
var names = ["Ann", "Bob", "Chuck", "Dana"];
how would I replace "Bob" with "Bill"?
names["Bob"] = "Bill";
list[1] = "Bill";
names[1] = "Bill";
names[2] = "Bill";
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What would be the output of the following code?
var myList = ["A", "B", "C"];
console.log(myList.length);
2
3
4
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
If I had a list in my program called todo. While running lots of items are added to the end of the list. How can I get the last item in the list.
todo[last]
todo[todo.length]
todo.length - 1
todo[todo.length - 1]
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Quiz1_HPB2021_2010t1

Quiz
•
1st - 12th Grade
16 questions
Python programming

Quiz
•
6th - 12th Grade
12 questions
Javascript Arrays

Quiz
•
9th - 12th Grade
15 questions
Basic Data Structures - Intro to CS

Quiz
•
12th Grade
10 questions
Python List Quiz

Quiz
•
11th Grade
14 questions
List Review Quiz

Quiz
•
9th - 12th Grade
15 questions
Kuis Python 1

Quiz
•
11th Grade
13 questions
Dojo - Type Inference

Quiz
•
1st - 12th Grade
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
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University