
Unit 5 - Lists, Loops, and Traversals Test Review
Quiz
•
Computers
•
9th Grade
•
Practice Problem
•
Easy
Zachary Jernigan
Used 57+ times
FREE Resource
Enhance your content in a minute
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
CIW
Quiz
•
9th - 12th Grade
10 questions
Word basics
Quiz
•
8th - 12th Grade
10 questions
Online Databases vs. Search Engines
Quiz
•
6th - 10th Grade
20 questions
Primary storage
Quiz
•
9th - 11th 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
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
