
List, Loops, and Traversals
Authored by Devonte Mitchell
Computers
12th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
37 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Lists
Named the same as variables
Can contain multiple elements
Index starts at 0
Each number(index) contains one value
2.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
What is true about var myList=["pizza",4]
The command creates a new list and assigns it to a variable
A list is indicated with square brackets
Each value in the list is separated by commas
3.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
What is true about myList[1]
It accesses the value at that index of the list
Also uses square brackets
4.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
What does myList[1]="hello" do?
Assigns the value on the right to the index
Throws out the old value and replaces it with a new one.
5.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
What does removeItem(list, index) do?
Removes the element in the given list at the given index
All items to the right are shifted over
The last index is removed from the list
6.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
What does appendItem(list,item) do?
Adds an element to the end of the list
A new index is added to the list to create a place for the element
The new item is placed in this new index
7.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
What does insertItem(list, index, item) do?
Inserts an element into a list at the index given
A new index is added to the list so there's space for the new element
The new element is placed at the index given, all other items move right
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
40 questions
LATIHAN SOAL PSTS INFORMATIKA KELAS 8 GNP
Quiz
•
9th - 12th Grade
40 questions
All About Computers
Quiz
•
9th - 12th Grade
35 questions
Quarter 2 Quiz 2
Quiz
•
12th Grade
34 questions
1.4.3. Boolean Algebra
Quiz
•
12th Grade
32 questions
Primer_Par_Cul_Dig_1G_24
Quiz
•
8th Grade - University
36 questions
Excel tercel parcial licenciatura
Quiz
•
9th Grade - University
32 questions
Câu Hỏi Trắc Nghiệm Ôn Tập
Quiz
•
11th Grade - University
35 questions
Administrasi Sistem Jaringan 2022/2023
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
22 questions
El Imperfecto
Quiz
•
9th - 12th Grade
20 questions
SSS/SAS
Quiz
•
9th - 12th Grade
20 questions
verbos reflexivos en español
Quiz
•
9th - 12th Grade
14 questions
Making Inferences From Samples
Quiz
•
7th - 12th Grade
23 questions
CCG - CH8 Polygon angles and area Review
Quiz
•
9th - 12th Grade
8 questions
Momentum and Collisions
Lesson
•
9th - 12th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade