
Unit 7 Test (Basic Data Structures)
Flashcard
•
Computers
•
9th - 12th Grade
•
Hard
Wayground Content
FREE Resource
Student preview

15 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which of the following data structures is immutable? Tuple, List, Dictionary, 2d List
Back
Tuple
2.
FLASHCARD QUESTION
Front
What does this program print?
heights = [65, 56, 67, 48, 64]
heights.sort()
heights.extend([60, 61, 62])
heights.remove(67)
print(heights)
Back
[48, 56, 60, 61, 62, 64, 65]
3.
FLASHCARD QUESTION
Front
How many times does this program print That's a large class!?
num_students = [23, 21, 33, 35, 24, 35]
for num in num_students:
if num > 23:
print("That's a large class!")
Back
4
4.
FLASHCARD QUESTION
Front
What would the following program print to the screen when run?
my_list = [7, 0, 0, "d", "n", "o", "B"]
my_list.reverse()
for thing in my_list:
print(thing)
Back
B
o
n
d
0
0
7
5.
FLASHCARD QUESTION
Front
Given the following list:
my_list = ["s", "Z", "e", "c", "c", "e", "r", "h", "e", "p", "t"]
which program below would give the following output:
s
e
c
r
e
t
Options:
for index in my_list:
if index % 2 == 0:
print(my_list[index])
,
for index in range(my_list):
if index % 2 == 0:
print(my_list[index])
,
for index in len(my_list):
if index % 2 == 0:
print(my_list[index])
,
for index in range(len(my_list)):
if index % 2 == 0:
print(my_list[index])
Back
for index in range(len(my_list)):
if index % 2 == 0:
print(my_list[index])
6.
FLASHCARD QUESTION
Front
Which values entered into ‘my_list’ would print a value of ‘-1’ after the program has run? my_list = [...] num = 0 for thing in my_list: num = num - thing print(num) Options: 5, -10, 6; -10, -5, 6; -5, 10, 6; -5, 0, 10, 6
Back
5, -10, 6
7.
FLASHCARD QUESTION
Front
Which of the following programs would produce the following output:
1. honey
2. bread
3. jelly
4. plates
Options:
my_list = ["honey", "bread", "jelly", "plates"]
for index in range(len(my_list)):
print(str(index) + ". " + my_list),
my_list = ["honey", "bread", "jelly", "plates"]
for index in range(len(my_list)):
print(str(index+1) + ". " + my_list[index]),
my_list = ["honey", "bread", "jelly", "plates"]
for index in my_list:
print(str(index+1) + ". " + my_list[index]),
my_list = ["honey", "bread", "jelly", "plates"]
for index in len(my_list):
print(str(index) + ". " + my_list[index])
Back
my_list = ["honey", "bread", "jelly", "plates"]
for index in range(len(my_list)):
print(str(index+1) + ". " + my_list[index])
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
Macbeth Act IV and V (Edited)
Flashcard
•
9th Grade - University
15 questions
Module 3: Integer Operations Review
Flashcard
•
7th Grade - University
10 questions
Present perfect continuous
Flashcard
•
8th - 11th Grade
15 questions
The Paston Letters, Primary Sources, and My Syrian Diary
Flashcard
•
12th Grade - University
15 questions
Meeting Your Metabolic Needs
Flashcard
•
6th Grade - University
15 questions
Slang Terms and Their Meanings
Flashcard
•
11th Grade
15 questions
Grammar Review Exam 4
Flashcard
•
11th Grade - University
19 questions
Supply and Demand Vocabulary
Flashcard
•
9th - 12th Grade
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
Discover more resources for Computers
18 questions
Artificial Intelligence and Machine Learning Quiz
Quiz
•
9th Grade
35 questions
Computer Terminology Exercise #1 ( Multiple Choice)
Quiz
•
9th Grade
20 questions
Computer Components Exercise #4 - CTEA
Quiz
•
9th - 12th Grade
30 questions
Computer Terminology Exercise #1 ( Fill Ins)
Quiz
•
9th Grade