
Lists and Tuples

Flashcard
•
Computers
•
KG
•
Hard
Mercy Omwoyo
FREE Resource
Student preview

9 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What is a list in Python?
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 list ["John", "Harry", "Jesse", "John", "Harry", "Harry"], which item has the index number of 3?
Back
John
4.
FLASHCARD QUESTION
Front
What would this code show on the screen?
Back
5
5.
FLASHCARD QUESTION
Front
For tuples and list which is correct?
Back
List is mutable whereas tuples are immutable.
6.
FLASHCARD QUESTION
Front
people = ["John", "Rob", "Bob"]
print (people[-1])
What would this result be?
Back
Bob
7.
FLASHCARD QUESTION
Front
Which is a correctly declared tuple?
Back
a = ("orange", "yellow", "red")
8.
FLASHCARD QUESTION
Front
Can you have an empty tuple z = () or an empty list w = []?
Back
yes
9.
FLASHCARD QUESTION
Front
Can you have lists inside of tuples and vice versa?
Back
Yes
Similar Resources on Wayground
5 questions
Review Lists in Python (before Lab 8)

Flashcard
•
9th - 12th Grade
12 questions
Python II Lesson 2

Flashcard
•
5th - 9th Grade
9 questions
W21.5.39 Common and Proper Nouns Quiz

Flashcard
•
5th Grade
9 questions
Chia động Từ lớp 6

Flashcard
•
6th Grade
7 questions
Healthy Relationships Scenarios

Flashcard
•
6th - 8th Grade
10 questions
TO BE

Flashcard
•
3rd Grade
9 questions
Unit 5 -- Lists, Loops, Traversals

Flashcard
•
9th - 12th Grade
10 questions
Fun Christmas

Flashcard
•
KG - Professional Dev...
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
20 questions
Disney Characters

Quiz
•
KG
20 questions
Place Value

Quiz
•
KG - 3rd Grade
20 questions
Logos

Quiz
•
KG
8 questions
Place Value & Value

Quiz
•
KG - 2nd Grade
20 questions
Capitalization in sentences

Quiz
•
KG - 4th Grade
12 questions
Continents and Oceans

Quiz
•
KG - 8th Grade
5 questions
911 Presentation

Lesson
•
KG
13 questions
Capitalization and Punctuation

Quiz
•
KG - 2nd Grade