What is the output of the following program?
Basic Data Structures - Intro to CS

Quiz
•
Computers
•
12th Grade
•
Medium
Christina Perry
Used 26+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
[1, 3, 4, 5]
2
[1, 2, 3]
[4, 5]
[1, 2, 4, 5]
3
[3, 4, 5]
[4, 5]
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the following array:
var groceries = ["milk", "eggs", "bread", "cookies"];
Which of the following statements will change "bread" to "coffee"?
groceries.push("coffee");
groceries[2] = "coffee";
groceries["bread"] = "coffee";
groceries[3] = "coffee";
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose we have a list schoolList shown below:
var schoolList = ["Richland", "Hanford", "Pasco"];
We want to write a function addSchool that will take a school list and an item as a parameter and add the item on to the end of the school list.
Which of the following is the correct implementation of addSchool?
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following function bombers do?
Returns a copy of the list list, and does not modify the contents of the list.
Returns a copy of the list list, and leaves list empty.
Returns a new list containing the elements of the list list in reverse order, and leaves list empty.
Returns a new list contatining the elements of the list list in reverse order, and does not modify the contents of the list.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following program?
-1
1
0
2
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What elements can be stored in data structures?
Any kind of objects (anything you can store in a variable)
Strings of text and numerical values
Strings of text, numerical values, and booleans
numerical values
7.
DRAG AND DROP QUESTION
1 min • 1 pt
How do we add 6 on the end of this array?
var nums = [1, 2, 3, 4, 5];
nums (a)
Create a free account and access millions of resources
Similar Resources on Quizizz
12 questions
Javascript Arrays

Quiz
•
9th - 12th Grade
20 questions
Array

Quiz
•
12th Grade
15 questions
2D Arrays

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

Quiz
•
6th - 12th Grade
15 questions
Area and Arrays

Quiz
•
10th - 12th Grade
19 questions
Unit 5 - Two-Dimensional Arrays

Quiz
•
9th - 12th Grade
19 questions
JavaScript Data Structures

Quiz
•
9th - 12th Grade
20 questions
APCS A - Array 6.1,6.2,6.3,6.

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