
Pyton lists - del() - error index
Authored by Larbi Yazid
Computers
4th - 12th Grade
Used 19+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
fruits = ["apple", "banana", "cherry"]
Choose the correct instruction to delete "banana"
fruits[1].delete()
fruits[1].delete
delete fruits[1]
del fruits[1]
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
numbers = [7,4,9,6,5,2,1]
Which of the following is the correct instruction to delete 9 ?
del numbers[2]
del numbers[3]
del numbers[9]
del numbers[-4]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
See the code and the output in the image.
What is the missing statement in the red box?
del banana
del thislist[1]
del thislist[2]
delete thislist[1]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
subjects = ["Computer", "Math", "English"]
Which of the following generates an index error?
subjects[0]
subjects[-1]
subjects[3]
subjects[-3]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
numbers = [6,3,9,8,2,1]
Which of the following will generate an index error?
numbers[9]
numbers[1]
numbers[-6]
numbers[5]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
results = [98.5 , 99.2 , 92.7 , 97.4]
Which of the following will NOT generate an index error?
results[3]
results[4]
results[5]
results[-5]
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
Dendrita - Seguridad
Quiz
•
1st - 10th Grade
10 questions
Cos’è la ROM?
Quiz
•
6th - 12th Grade
10 questions
TQ - Review Quiz Week 1
Quiz
•
9th Grade
11 questions
TIK KELAS 2
Quiz
•
1st - 5th Grade
11 questions
Computer Education 7
Quiz
•
7th Grade
10 questions
Quiz_1
Quiz
•
9th - 10th Grade
10 questions
mihifidem
Quiz
•
5th Grade
10 questions
Conversión entre Decimal y Binario
Quiz
•
6th Grade
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
Discover more resources for Computers
10 questions
Navigating Digital Citizenship and Online Safety
Interactive video
•
6th - 10th Grade
10 questions
Practice Typing
Quiz
•
8th Grade
20 questions
Computer / Internet Companies
Quiz
•
9th Grade
10 questions
Exploring the Basics of Google Sheets
Interactive video
•
9th Grade
10 questions
Exponent Rules
Quiz
•
9th - 12th Grade
20 questions
JavaScript - Karel
Quiz
•
9th - 10th Grade