
Python Basic Flashcard 5 ( Lists and Tuples)
Flashcard
•
Other
•
6th - 8th Grade
•
Hard
Wayground Content
FREE Resource
Student preview

9 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which of these is the best description of a list in Python? A list is a collection of data that has an order and can be changed, A list is a lot of variables, A list is used for shopping, A list is a collection of data that cannot hold duplicated data and cannot be changed
Back
A list is a collection of data that has an order and can be changed
2.
FLASHCARD QUESTION
Front
Which of these is the correct code for creating 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]
Back
nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]
3.
FLASHCARD QUESTION
Front
In the following list, which item has the index number of 3?
["John", "Harry", "Jesse", "John", "Harry", "Harry"]
Back
"John"
4.
FLASHCARD QUESTION
Front
Which of these pieces of code would return the name "Harry" from the following list? nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"] Options: nameList(), nameList[1], NameList(4), nameList["4"]
Back
nameList[1]
5.
FLASHCARD QUESTION
Front
For tuples and list which is correct?
Back
List is mutable whereas tuples are immutable.
6.
FLASHCARD QUESTION
Front
Which is a correctly declared tuple? Options: a = ("orange", "yellow", "red"), a = "orange", "yellow", "red", a = ["orange", "yellow", "red"], a = "orangeyellowred"
Back
a = ("orange", "yellow", "red")
7.
FLASHCARD QUESTION
Front
Can you have an empty tuple z = () or an empty string w = []?
Back
yes
8.
FLASHCARD QUESTION
Front
If L1=[2,4,8,16], L2=[32,64] what is L1+L2?
Back
[2,4,8,16,32,64]
9.
FLASHCARD QUESTION
Front
Suppose list1 is [1, 3, 2], What is list1 * 2 ?
Back
[1, 3, 2, 1, 3, 2]
Similar Resources on Wayground
4 questions
Cartografia
Flashcard
•
6th Grade
5 questions
Synthesizing Essential Information in Various Sources
Flashcard
•
8th Grade
10 questions
Bahasa Inggris Kelas 4 - I go to school after having breakfast
Flashcard
•
6th Grade
6 questions
Butterfly Flashcards
Flashcard
•
6th - 8th Grade
10 questions
Noun suffixes -ness, -dom, -ship
Flashcard
•
7th - 8th Grade
9 questions
ZEMĚPIS 6 - Litosféra 1
Flashcard
•
5th - 7th Grade
9 questions
MULTICULTURALISM ȘI INTERCULTURALISM
Flashcard
•
6th Grade
9 questions
Chiese e Mausolei di Roma
Flashcard
•
6th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade
Discover more resources for Other
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade
20 questions
Physical and Chemical Changes
Quiz
•
8th Grade
20 questions
Photosynthesis and Cellular Respiration
Quiz
•
7th Grade
21 questions
Convert Fractions, Decimals, and Percents
Quiz
•
6th Grade
11 questions
y=mx+b
Quiz
•
7th Grade
20 questions
One step Equations
Quiz
•
6th Grade