
List, Loops, and Traversals
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Hard
Devonte Mitchell
FREE Resource
Enhance your content in a minute
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
32 questions
C++ Chapter 5 Review - Loops
Quiz
•
10th Grade - University
35 questions
Photoshop ACA
Quiz
•
9th - 12th Grade
32 questions
HTML Web Design Review
Quiz
•
9th - 12th Grade
35 questions
98-367 PT3
Quiz
•
9th - 12th Grade
37 questions
Excel Gmetrix Quiz
Quiz
•
10th - 12th Grade
36 questions
EarSketch/Python Programming
Quiz
•
9th - 12th Grade
40 questions
ANIMATION / Principles of Animation
Quiz
•
6th - 12th Grade
36 questions
Chapter 3 File Management
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
15 questions
Christmas Song Emoji Pictionary
Quiz
•
7th - 12th Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
55 questions
CHS Holiday Trivia
Quiz
•
12th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
29 questions
christmas facts
Lesson
•
5th - 12th Grade
20 questions
Christmas Trivia
Quiz
•
5th - 12th Grade
20 questions
Stages of Meiosis
Quiz
•
9th - 12th Grade
