

Big ideas: Lists
Presentation
•
Computers
•
9th Grade - University
•
Medium
Samuel Stansbery
Used 1+ times
FREE Resource
2 Slides • 7 Questions
1
Big ideas: Lists

2
Some big ideas:
lists are used to hold collections of variables
list help organize variables that can be accessed through the list's index
javaScript has built-in functions that allow you to add, remove, and replace items
3
Multiple Choice
What is the error in line 10?
pizza is not a pet
quotation marks should not have been used
you can only have 3 elements in a list
you need to replace the parenthesis with a square bracket
4
Multiple Choice
Which line of code will print bear to the console?
console.log(animals[4)];
console.log(animals[3)];
console.log(animals[5)];
5
Multiple Choice
Give the pictured list, what will the variable numOfAns get?
numOfAns = animals.length;
3
4
5
6
6
Multiple Select
Let's say you have declared the following empty list:
var evenNumbers = [];
Which lines of code will add an item to the list?
evenNumbers = 5;
appendItem(evenNumbers, 5);
evenNumbers[0] = 5;
7
Multiple Choice
what value is given to letter?
var month = "December"
var letter = month[5];
c
e
m
b
8
Multiple Choice
What happens when the rightButton is clicked twice?
var colors["yellow", "red", "blue"];
var index = 0;
onEvent("rightButton", "click", function( ) {
colors[index + 1];
}
move to yellow in the list
move to red in the list
move to blue in the list
move out of bounds
9
Multiple Choice
Consider the following code:
[1]: var colors = ["yellow", "red", "blue"];
[2] removeItem(colors, 0);
[3] appendItem (colors, "purple");
[4] insertItem(2, "yellow");
["red", "blue", "purple"]
["red", "purple","blue", "yellow"]
["red", "yellow", "blue","purple"]
["red", "blue", "yellow", "purple"]
Big ideas: Lists

Show answer
Auto Play
Slide 1 / 9
SLIDE
Similar Resources on Wayground
6 questions
Birds - Listening Activity
Presentation
•
9th - 12th Grade
8 questions
La chica de los zapatos verdes C.1
Presentation
•
9th - 12th Grade
6 questions
Fan Cart Gizmo
Presentation
•
9th - 12th Grade
6 questions
Pedigree review 2024
Presentation
•
9th - 12th Grade
6 questions
Letter to Santa
Presentation
•
9th - 12th Grade
6 questions
Mod 03 p4-5
Presentation
•
9th - 12th Grade
6 questions
Example
Presentation
•
KG - University
6 questions
Ways of cooking
Presentation
•
KG - University
Popular Resources on Wayground
6 questions
Secondary Safety Quiz
Presentation
•
9th - 12th Grade
10 questions
MyPath Diagnostic Overview
Presentation
•
6th - 8th Grade
20 questions
Lab Safety Quiz
Quiz
•
6th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Adding and Subtracting Decimals
Quiz
•
5th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade
21 questions
Lab Safety
Quiz
•
10th Grade
Discover more resources for Computers
20 questions
Early Computing
Quiz
•
7th - 12th Grade
20 questions
Module 1 Topic 1 Vocabulary
Quiz
•
9th - 12th Grade
10 questions
Exploring Computer Hardware and Software Components
Interactive video
•
6th - 10th Grade
14 questions
Introduction to Digital Citizenship
Quiz
•
9th Grade
39 questions
Safety Review
Quiz
•
9th - 12th Grade
20 questions
Digital Citizenship
Quiz
•
8th - 12th Grade
25 questions
OSHA and Lab Safety
Quiz
•
9th Grade
22 questions
Electronic Computing
Quiz
•
8th - 12th Grade