Unit 5 Lists, Loops, & Traversals

Quiz
•
Computers
•
10th - 12th Grade
•
Medium

Kaitlin McKiernan
Used 186+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following will result in ONLY all the items in list being printed to the console if placed where the program reads <INSERT CODE> and the program is run?
i < list[list.length]
i < list.length
i < list[0]
i < list[1]
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
wordList is a list of words that currently contains the values ["tree", "rock", "air"]
Which of the following lines will result in the list containing the values ["air", "rock", "air"] ?
wordList[0] = wordList[2]
wordList[2] = wordList[0]
insertItem(wordList, 0, "air")
removeItem(wordList, 0)
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be displayed in the console when this program runs?
2
3
20
30
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be displayed when this program finishes running?
3
6
7
5
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be displayed in the console when the following program runs?
0 2 4 6
0 2 4
2 4 6
The program will result in an infinite loop.
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will the following program display in the console?
0 1 2 3
0 1 2 3 4
1 2 3
1 2 3 4
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will the following program display in the console?
0
5
10
15
Create a free account and access millions of resources
Similar Resources on Wayground
11 questions
Javascript Lists Lecture Knowledge Check

Quiz
•
9th - 12th Grade
10 questions
Evaluasi Javascript 3

Quiz
•
10th Grade
10 questions
C# Programming 2

Quiz
•
12th Grade
12 questions
Unit 7 Mid Review

Quiz
•
9th - 12th Grade
10 questions
Unit 3 Quiz

Quiz
•
10th Grade - University
15 questions
AP CSP Unit 4: Lesson 15: Assessment Day

Quiz
•
9th - 12th Grade
12 questions
Topic 1 C++ Programming

Quiz
•
12th Grade
10 questions
Implementing Mass Storage Application

Quiz
•
10th Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

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

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade