
List and Tuple Questions

Flashcard
•
Information Technology (IT)
•
8th Grade
•
Hard
Wayground Content
FREE Resource
Student preview

20 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What is wrong with the following attempt to initialize a list?
data = ["hockey", 4, False]
Back
Nothing; this will work correctly
2.
FLASHCARD QUESTION
Front
What will be displayed on the screen when the following code is run?
esports = ["Donkey Kong", "Galaga", "Pac Man"]
print( esports[1] )
Back
Galaga
3.
FLASHCARD QUESTION
Front
What is wrong with the following code?
esports = ("Donkey Kong", "Galaga", "Pac Man")
esports[1] = "Centipede"
Back
You cannot update an item in a tuple
4.
FLASHCARD QUESTION
Front
Given a list with 3 items, what is the lowest and highest valid index number into that list?
Back
0 and 2
5.
FLASHCARD QUESTION
Front
Given a list named "esports", which of the following statements will access only the first and second items in that list? Options: esports(0:1), esports{0:2], esports(1,2), esports.range(0,2)
Back
esports{0:2]
6.
FLASHCARD QUESTION
Front
What is displayed on the output screen when the following code runs?
esports = ("Donkey Kong", "Galaga", "Pac Man")
print(len(esports))
Back
3
7.
FLASHCARD QUESTION
Front
What is displayed to the screen when the following code runs?
esports = ["Donkey Kong", "Galaga", "Pac Man"]
esports.insert(0,"Centipede")
print(esports)
Back
['Centipede', 'Donkey Kong', 'Galaga', 'Pac Man']
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Plural Nouns

Flashcard
•
7th Grade
13 questions
7th Grade STAAR revising and editing

Flashcard
•
7th - 8th Grade
15 questions
Loops Python

Flashcard
•
9th Grade
10 questions
Famous Video Games

Flashcard
•
KG
18 questions
Early Video Games

Flashcard
•
6th - 8th Grade
22 questions
Python Friday Check

Flashcard
•
7th Grade
12 questions
Vocab Stem List #14

Flashcard
•
7th Grade
15 questions
Animals and Pets

Flashcard
•
7th 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 Information Technology (IT)
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
20 questions
Figurative Language Review

Quiz
•
8th Grade
10 questions
Understanding the Scientific Method

Interactive video
•
5th - 8th Grade
20 questions
Scientific method and variables

Quiz
•
8th Grade
20 questions
Physical and Chemical Changes

Quiz
•
8th Grade