
Python lists
Computers
7th - 9th Grade
Used 35+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is a list?
["apples", "oranges", "bananas"]
"apples", "oranges", "bananas"
{"apples", "oranges", "bananas"}
("apples", "oranges", "bananas")
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these assigns a list to a variable?
fruit = input(["apples", "oranges", "bananas"])
fruit = ["apples", "oranges", "bananas"]
fruit == ["apples", "oranges", "bananas"]
fruit["apples", "oranges", "bananas"]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To add an item to the end of a list we use
fruit.add("strawberries")
fruit.append("strawberries")
append(fruit("strawberries")
("strawberries").append[fruit]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To insert an item in the first position of a list we use
fruit.append("strawberries, 1")
fruit.insert("strawberries",0)
fruit.insert(1, "strawberries")
fruit.insert(0, "strawberries")
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the code output?
"apples", "oranges"
"apples"
"there are apples"
"there are no apples"
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
An empty list can be declared as
fruitList = ""
fruitList = ["empty"]
fruitList == []
fruitList = []
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The output of this code will be
"orange"
3
True
0
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
15 questions
Programming Vocabulary
Quiz
•
6th - 8th Grade
20 questions
Word Processing Lesson 1
Quiz
•
5th - 9th Grade
19 questions
Presentation & Business Skills
Quiz
•
6th - 8th Grade
21 questions
Technology Skills
Quiz
•
5th - 8th Grade
15 questions
Access 2013 Lesson 1
Quiz
•
9th - 12th Grade
20 questions
WE Lesson 2: Formatting, Editing & Printing
Quiz
•
6th - 8th Grade
14 questions
Bài 29. Nhận biết lỗi chương trình
Quiz
•
9th - 12th Grade
15 questions
KS3 Y8 Kodu Quiz
Quiz
•
5th - 8th Grade
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