Python Lists
Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Jakobi Gorham
Used 48+ times
FREE Resource
Enhance your content in a minute
27 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
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]
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
List items have an index number. In the following list, which item has the index number of 3?
["John", "Harry", "Jesse", "John", "Harry", "Harry"]
"John"
"Harry"
"Jesse"
3.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
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")
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What output will this code produce?
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Consider this list, what will be the highest index the list can have:
li=[1,2,3,4,5]
2
3
4
5
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
The count() method returns the number of times the specified element appears in the list.
What is the output of this code?
3
2
1
0
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What is the output of this code?
X
Y
Error
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
22 questions
Steve Jobs
Quiz
•
6th - 12th Grade
22 questions
1.2.4 Data Storage - OCR
Quiz
•
9th - 10th Grade
22 questions
Networks: End of Unit Quiz
Quiz
•
7th - 9th Grade
22 questions
Year 10 Inkscape lesson 5 and 6 formative test
Quiz
•
10th Grade
23 questions
CSAwesome Unit 1 Vocabulary
Quiz
•
10th - 12th Grade
23 questions
AP CSA Unit One Review
Quiz
•
11th Grade
23 questions
CompTIA Sec+ Chapter 3, 2nd Attempt Missed
Quiz
•
12th Grade
25 questions
Unit 1: Post Test: Fundamentals of Computer Systems
Quiz
•
10th Grade - University
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
