
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
15 questions
Google Tips and Tricks
Quiz
•
7th - 9th Grade
10 questions
Cyber Security
Quiz
•
1st - 10th Grade
16 questions
Acceptable Use Policy
Quiz
•
6th - 9th Grade
14 questions
BÀI 14- THUẬT TOÁN TÌM KIẾM TUẦN TỰ
Quiz
•
6th Grade - University
10 questions
BÀI 8. SẮP XẾP VÀ LỌC DỮ LIỆU
Quiz
•
1st - 12th Grade
20 questions
Google SketchUp Tool
Quiz
•
KG - University
10 questions
App Development lesson 1
Quiz
•
8th - 9th Grade
10 questions
Microsoft Teams
Quiz
•
KG - 12th Grade
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
Discover more resources for Computers
10 questions
Navigating Digital Citizenship and Online Safety
Interactive video
•
6th - 10th Grade
20 questions
Computer / Internet Companies
Quiz
•
9th Grade
10 questions
Exploring the Basics of Google Sheets
Interactive video
•
9th Grade
10 questions
Exponent Rules
Quiz
•
9th - 12th Grade
20 questions
JavaScript - Karel
Quiz
•
9th - 10th Grade