
python - list - 1

Quiz
•
Other
•
6th - 8th Grade
•
Easy
IQuotient 369
Used 1+ times
FREE Resource
32 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
aList = [10, 20, 30, 40, 50, 60, 70, 80]
print(aList[2:5])
print(aList[:4])
print(aList[3:])
[30, 40, 50]
[10, 20, 30, 40]
[40, 50, 60, 70, 80]
[ 40, 50]
[20, 30, 40]
[50, 60, 70, 80]
[30, 40]
[10, 20, 30]
[40, 50, 60, 70,]
Error
2.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
sampleList = [10, 20, 30, 40, 50]
print(sampleList[-2])
print(sampleList[-4:-1])
50
[20, 30, 50]
40
[20, 30, 40]
10
[20, 30, 10]
error
3.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
my_list = [1, 2, 3, 4, 5]
print(my_list[2])
3
4
5
1
4.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
my_list = ['apple', 'banana', 'cherry']
item = my_list[-1]
print(item)
cherry
error
banana
apple
5.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
my_list = [10, 20, 30, 40, 50]
print(my_list[:3])
[10, 20, 30]
[20, 30]
[10, 20]
[10, 30]
6.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
my_list = [1, 2, 3, 4, 5]
my_list[2] = 10
print(my_list)
[1, 2, 10, 4, 5]
[1, 2, 4, 5]
[1, 10, 4, 5]
[1, 2, 10]
7.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
my_list = ['a', 'b', 'c', 'd', 'e']
print(my_list[-3:])
['c', 'd', 'e']
['a', 'b']
['b', 'c', 'd']
['c', 'd']
Create a free account and access millions of resources
Similar Resources on Wayground
30 questions
SWE++ Review

Quiz
•
6th - 8th Grade
35 questions
Yearbook Vocab Quiz

Quiz
•
6th - 8th Grade
35 questions
Year 7 Term 1 ICT Starters On Track Stage 1 Unit 1 to 4

Quiz
•
7th Grade
27 questions
MacqLit Part B Revision Lesson 7-9

Quiz
•
8th Grade
33 questions
xfyj

Quiz
•
1st Grade - University
30 questions
Basic Excel Quiz

Quiz
•
6th - 8th Grade
31 questions
Do you Know your 7th Grade Teachers?

Quiz
•
7th Grade - University
30 questions
8th US History Industrialization Quiz

Quiz
•
8th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Video Games

Quiz
•
6th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Multiplying and Dividing Integers

Quiz
•
7th Grade
20 questions
Morpheme Mastery Quiz for Grade 7

Quiz
•
7th Grade