Data Structures
Quiz
•
Computers
•
8th Grade
•
Hard
Seth Halpern
Used 5+ times
FREE Resource
Enhance your content in a minute
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is the best description of a list in Python?
A list is a collection of data that has an order and can be changed
A list is a lot of variables
A list is used for shopping
A list is a collection of data that cannot hold duplicated data and cannot be changed
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is the correct code for creating a list of names?
nameList = John, Harry, Jesse, John, Harry, Harry
nameList = ("John", "Harry", "Jesse", "John", "Harry", "Harry")
nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]
nameList = [John, Harry, Jesse, John, Harry, Harry]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these pieces of code would return the name "Harry" from the following list?
nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]
nameList()
nameList[1]
NameList(4)
nameList["4"]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The list needs one more name added to the end - "Felipe". Which piece of code below would do this?
nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]
nameList.append(Felipe)
append(nameList,"Felipe")
nameList.append["Felipe",7]
nameList.append("Felipe")
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax for creating a list in Python?
{}
[]
||
()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
big_list = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]
What command will count the total number of elements in this list?
print(len(big_list))
print(len("big_list"))
big_list.pop(1)
big_list.append(1)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
names=["Joe", "Tom", "Sam", "Bill"]
What command will add "Tim" between "Sam" and "Bill"?
names.pop(3,"Tim")
names.append(3,"Tim")
names.insert(3,"Tim")
names.remove(3,"Tim")
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
values = [5, 3, 3, 7, 10,3]
values.remove(3)
What is the output?
[3,3,3]
[5,3,3,10,3]
[5,7,10]
[5,3,7,10,3]
9.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
values = [5, 3, 7, 10,20]
values.pop(3)
What is the output?
[5,3,7,10,20,3]
[5,3,7,20]
[5,7,10,20]
[10,20]
Similar Resources on Wayground
10 questions
KTTX Tin 9 Lần 1 HKI
Quiz
•
6th - 8th Grade
13 questions
3Per Evaluación Final Tecnología e Informática 9
Quiz
•
6th - 8th Grade
10 questions
Unidades de medidad de la Información
Quiz
•
7th - 8th Grade
11 questions
Cascading Style Sheets
Quiz
•
8th - 12th Grade
13 questions
Nhập môn HTML
Quiz
•
6th - 9th Grade
10 questions
CLASS 8 CODING
Quiz
•
8th Grade
9 questions
Introduction To Python
Quiz
•
6th - 8th Grade
10 questions
Remedial TIK Kelas 8
Quiz
•
8th 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
