
Unit 5 Review #2 - Lists, Loops, and Traversals (cont)
Authored by Zachary Jernigan
Computers
9th Grade
Used 27+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an iteration in the context of loops?
The process of repeating a set of instructions
The termination of the loop
The condition for the loop to continue
The output of the loop
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the 'append' function do in the context of lists?
Adds an element to the end of the list
Removes the last element of the list
Sorts the list in ascending order
Reverses the order of the list
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an index in the context of lists?
The position of an element in the list
The total number of elements in the list
The data type of the elements in the list
The name of the list
4.
MATCH QUESTION
1 min • 1 pt
Match the following indexes to the proper element using the list below:
var list = [ 17 , "pizza", 29, "Mixer RIP", "For Democracy!" ];
17
list [list.length-1]
"For Democracy!"
list [list.length-2]
"Mixer RIP"
list [2]
"pizza"
list [1]
29
list [0]
5.
CATEGORIZE QUESTION
3 mins • 1 pt
Groups:
(a) Types of Traversals
,
(b) Types of Loops
Reduce
Map
While
Filter
For
Infinite
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The code shown is run. Which of the following is an impossible outcome based on the code?
Heads: 51
Tails: 49
Heads: 20
Tails: 30
Heads: 100
Tails: 0
Heads: 50
Tails: 50
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In which square will the robot end up in if the following code is run?
var steps=0;
while(steps<3){
moveFoward();
steps++;
}
C2
E5
A1
B2
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?