
Unit 5 Review #2 - Lists, Loops, and Traversals (cont)

Quiz
•
Computers
•
9th Grade
•
Easy
Zachary Jernigan
Used 26+ times
FREE Resource
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!" ];
"pizza"
list [2]
"For Democracy!"
list [0]
17
list [list.length-2]
"Mixer RIP"
list [1]
29
list [list.length-1]
5.
CLASSIFICATION QUESTION
3 mins • 1 pt
Groups:
(a) Types of Traversals
,
(b) Types of Loops
Infinite
Reduce
While
Filter
For
Map
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
Create a free account and access millions of resources
Similar Resources on Wayground
18 questions
App Inventor

Quiz
•
7th - 9th Grade
15 questions
Basic Programming Concepts

Quiz
•
9th Grade
12 questions
CodeHS Unit 1

Quiz
•
9th - 12th Grade
21 questions
Javascript Debugging Review

Quiz
•
9th Grade
16 questions
Lists

Quiz
•
9th - 12th Grade
20 questions
Scratch-Grade 7

Quiz
•
7th - 9th Grade
20 questions
Python -Iteration (loops)

Quiz
•
7th - 12th Grade
20 questions
CSA Unit 7 Test

Quiz
•
9th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade