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")
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
Year 8 - Progress Check 1 (Python Turtle Shapes)
Quiz
•
8th - 9th Grade
12 questions
Revision quiz on Access
Quiz
•
8th Grade
10 questions
Kuiz Senang
Quiz
•
7th - 9th Grade
13 questions
CODING QUIZZ
Quiz
•
8th Grade
10 questions
Arquitetura IPv6
Quiz
•
1st Grade - University
10 questions
C# lesson10
Quiz
•
1st - 10th Grade
10 questions
แบบทดสอบบทที่ 9
Quiz
•
8th Grade
10 questions
Konsep Routing
Quiz
•
1st - 10th 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
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
