
List in Python
Authored by Sỹ Tài
Computers
KG
Used 332+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is length of following list?
L = []
0
1
2
4
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Result of following programming?
L = [ 1, 3, 4, 5, 'a', 'b']
print(L[1:5]
[1,3,4,5]
[3,4,5,'a']
[3,4,5,'a','b']
[ 1, 3, 4, 5, 'a', 'b']
3.
MULTIPLE CHOICE QUESTION
2 mins • 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]
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
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"
5.
MULTIPLE CHOICE QUESTION
2 mins • 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)
6.
MULTIPLE CHOICE QUESTION
2 mins • 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")
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What would this code show on the screen?
5
6
7
8
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
13 questions
Networks
Quiz
•
7th - 9th Grade
15 questions
Computer and it's parts
Quiz
•
1st Grade
15 questions
حاسب 2
Quiz
•
10th Grade
10 questions
Computer Basics
Quiz
•
KG - 3rd Grade
10 questions
การพัฒนาแอพพลิเคชัน
Quiz
•
9th Grade
10 questions
ICT Java programming workshop
Quiz
•
9th Grade
12 questions
Revision quiz on Access
Quiz
•
8th Grade
15 questions
IT quiz class 7 E-commerce and blogging
Quiz
•
6th - 7th 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
Discover more resources for Computers
4 questions
Conflict Resolution
Lesson
•
KG
20 questions
Place Value
Quiz
•
KG - 3rd Grade
20 questions
CVC Words
Quiz
•
KG - 1st Grade
24 questions
CKLA Unit 5 assessment K
Quiz
•
KG
10 questions
STAAR Review - Editing & Revising Clusters
Quiz
•
KG
10 questions
Reflexive Pronouns
Quiz
•
KG - 5th Grade
10 questions
Long i- igh, ie, and y Quiz
Quiz
•
KG - 3rd Grade
12 questions
Quarter Past, Half Past, and Quarter To
Quiz
•
KG - 12th Grade