We are writing a program that needs to store a to-do list. The most important task should be at the beginning of the to-do list, and the least important task should be at the end of the to-do list. Which data structure should we use to store the to-do list?
Unit 8 Javascript Quiz

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Nate Edwards
Used 14+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Set
List/Array
Object
Grid
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following program?
No output, there is an error when trying to add multiple copies of the same item to a set.
Set: {4, 5, 5, 6, 6}
et: {6, 6, 5, 5, 4}
Set: {4, 5, 6}
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data structure should you use to store the locations of pieces in a game of checkers?
Object/Map
Grid
List/Array
Set
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You are watching a basketball game and want to keep track of how many points each player scores. Which data structure should you use to store the name of each player and how many points they score? You want to be able to look up a player’s score by their name.
Object/Map that maps strings of text (player names) to numbers (scores)
List/Array that holds a player name followed by a score followed by a player name and so on.
Set that holds all the player names and scores
Grid where each row holds a player name in the first column and their score in the second column
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If you want to be able to look up values by index (1st element, 2nd element, 3rd element, etc), which data structure is best?
Set
List/Array
Object/Map
Grid
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If you want to be able to look up data by coordinates / location, which data structure is best?
Grid
List/Array
Set
Object/Map
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the following code, what is the meaning of the variable x?
x will iterate through every index in the object groceries, starting at 0 and ending at 3
x will iterate through every key in the object groceries, taking on the values “bananas”, “apples”, “eggs”, and “oranges” in no particular order
x will iterate through every value in the object groceries, taking on the values 4, 5, 12, and 1 in no particular order
x is the loop counter, x keeps track of how many times the loop has run
Create a free account and access millions of resources
Similar Resources on Quizizz
18 questions
Data Structures Quiz 1

Quiz
•
12th Grade - University
10 questions
Website Components

Quiz
•
3rd - 9th Grade
15 questions
Python Lists

Quiz
•
10th - 12th Grade
20 questions
GCSE Computer Science: Programming (Data Structures)

Quiz
•
9th - 10th Grade
20 questions
Unit 5 Quiz - Loops & Lists (code.org)

Quiz
•
10th - 12th Grade
15 questions
Databases

Quiz
•
9th - 12th Grade
20 questions
AP CSP Unit 6

Quiz
•
10th - 12th Grade
20 questions
APCSA Arrays

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