PYTHON -- Lists (short)

Flashcard
•
Computers
•
9th - 12th Grade
•
Hard
Wayground Content
FREE Resource
Student preview

9 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Would the following code work for creating a list? friends = {"Monica", "Ross", "Rachel", "Phoebe", "Joey", "Chandler"}
Back
No
2.
FLASHCARD QUESTION
Front
Which symbols are used to open and close a list? ( ) round brackets AKA parentheses, { } curly brackets, [ ] square brackets, " " double quote marks, < > angle brackets AKA chevrons
Back
[ ] square brackets
3.
FLASHCARD QUESTION
Front
Which line of code is the correct way to create a list of names? Options: 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]; nameList = (John, Harry, Jesse, John, Harry, Harry)
Back
nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]
4.
FLASHCARD QUESTION
Front
What's the index value of list item "Robert" in names = ["Bob", "Bobby", "Robert", "Rob"]?
Back
2
5.
FLASHCARD QUESTION
Front
Which list item has the index value of 3? ["John", "Harry", "Jesse", "John", "Harry", "Harry"]
Back
"John"
6.
FLASHCARD QUESTION
Front
Which line of code would insert the string "strawberries" in the first position of the fruit list? Options: fruit("strawberries", 1), fruit("strawberries", 0), fruit(1, "strawberries"), fruit[1:1] = ["strawberries"]
Back
fruit[1:1] = ["strawberries"]
7.
FLASHCARD QUESTION
Front
What data type are the list items shown in the screenshot?
Back
Integers
8.
FLASHCARD QUESTION
Front
Which line of code would allow us add "Felipe" to the end of the nameList list? Options: nameList.append(Felipe), nameList(append,"Felipe"), nameList.append("Felipe"), nameList.append["Felipe"]
Back
nameList.append("Felipe")
9.
FLASHCARD QUESTION
Front
Which line of code would print the fruitList list? Options: print(fruitList), list(print), fruitList.print(), fruitList(print)
Back
print(fruitList)
Similar Resources on Wayground
12 questions
Present Tense Verbs

Flashcard
•
9th - 12th Grade
15 questions
Compare and Contrast

Flashcard
•
9th - 11th Grade
11 questions
Evidence of Evolution Formative

Flashcard
•
10th - 12th Grade
10 questions
DYLANS WIFE

Flashcard
•
KG - 12th Grade
10 questions
Presidents 31-40: Years in Office

Flashcard
•
KG
12 questions
Food Groups

Flashcard
•
KG
12 questions
Foods I Exam Review 2-TN24

Flashcard
•
9th - 12th Grade
10 questions
48 horas cap 3-4

Flashcard
•
10th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade