python list

Flashcard
•
Computers
•
8th Grade
•
Hard
Quizizz Content
FREE Resource
Student preview

22 questions
Show all answers
1.
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]
2.
FLASHCARD QUESTION
Front
What output will this code produce? Options: blue, green, red, error
Back
red
3.
FLASHCARD QUESTION
Front
What is the output of the code that uses the count() method to return the number of times the specified element appears in the list?
Back
3
4.
FLASHCARD QUESTION
Front
Output of this code?
Options:
[2,4,6,8,10],
['2','4','6','8','10'],
[0,2,4,6,8],
[10,8,6,4,2]
Back
[10,8,6,4,2]
5.
FLASHCARD QUESTION
Front
What is the index of “grape” in the list [“apple”, “grape”, “orange”, “watermelon”]?
Back
1
6.
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"]
7.
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]
Create a free account and access millions of resources
Similar Resources on Wayground
16 questions
Python L1 Knowledge Check

Flashcard
•
6th - 8th Grade
16 questions
Python L1 Knowledge Check

Flashcard
•
6th - 8th Grade
9 questions
Lists and Tuples

Flashcard
•
KG
15 questions
MUG Week 6: MINTS Capitalization

Flashcard
•
8th Grade
18 questions
Equalizer trivia☺️

Flashcard
•
KG
10 questions
Lists in Python

Flashcard
•
9th Grade
15 questions
Who Is J.K. Rowling? Book Flashcard

Flashcard
•
KG
20 questions
Jesse y Joy

Flashcard
•
7th Grade
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade