Python Lists
Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Jakobi Gorham
Used 49+ 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
25 questions
ASESMEN HARIAN INFORMATIKA KELAS X SMT-2 BAB 1
Quiz
•
10th Grade
23 questions
Revision grade 11 term 3
Quiz
•
11th Grade
22 questions
11 CSC ATAR - Week 2-3 review
Quiz
•
11th Grade
22 questions
Functions in RobotC
Quiz
•
7th - 11th Grade
23 questions
Navigating Digital Information: Review of all Ten Videos
Quiz
•
9th Grade - University
23 questions
Chapter 5 & 6 Review
Quiz
•
9th - 12th Grade
25 questions
AIJ
Quiz
•
12th Grade
25 questions
Quiz #4 Etech
Quiz
•
11th 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
