
Unit 5 - Lists, Loops, and Traversals Test Review
Authored by Zachary Jernigan
Computers
9th Grade
Used 59+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a benefit of using a list over a variable?
Lists can hold more than one value
Lists convert all elements to Strings
Lists allow duplicate values in a more manageable way then variables.
Only lists can be used be used with user input
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would be the element at index 3 of the following list:
[1, 4, 6, 8, 10, 11]
8
6
10
11
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Strings also have an index where each character is an element. What character would be at the index of 2 for a String with value "Hello!"
l
e
H
o
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Usually we start indexes at 0. For this question assume that the indexes start at 1. Which element would be at index 1 of the following list:
[1, 9, 2, 3, 5, 11]
1
9
11
3
Answer explanation
Usually we do start the indexes at 0 but this question specifically says that you should assume the indexes start at 1. Despite no major programming language using this convention, the AP Test loves to do this.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the appendItem() function do in App Lab?
Adds elements to the end of the list
Adds elements into the middle of the list at a given index
Adds elements to the beginning of a list.
Adds elements at random indexes in the list.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would be output as a result of the following loop?
Assume no errors are thrown when this code is run
red red red blue red red red blue
red blue red blue red blue
red red blue red red blue red red blue
blue blue red red red red red red
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A list contains 10 elements. Which of the following would be a valid index for this list?
5
2.5
10
"Hello"
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
10 questions
Word basics
Quiz
•
8th - 12th Grade
10 questions
Online Databases vs. Search Engines
Quiz
•
6th - 10th Grade
10 questions
Microsoft Publisher
Quiz
•
7th - 10th Grade
10 questions
Tarkie Seminar for Disers
Quiz
•
9th - 12th Grade
20 questions
Microsoft Excel
Quiz
•
KG - Professional Dev...
17 questions
Basic Docs
Quiz
•
8th - 9th Grade
10 questions
Logic Gates
Quiz
•
9th - 12th Grade
15 questions
CIW
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