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"]
python list

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

22 questions
Show all answers
1.
FLASHCARD QUESTION
Front
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 Quizizz
20 questions
Christmas Trivia

Flashcard
•
8th Grade
15 questions
7th Punctuation Review

Flashcard
•
8th Grade
18 questions
List Review - code.org Unit 6

Flashcard
•
9th Grade
12 questions
Python II Lesson 2

Flashcard
•
5th - 9th Grade
16 questions
Parts of the Declaration of Independence

Flashcard
•
8th Grade
15 questions
MUG Week 6: MINTS Capitalization

Flashcard
•
8th Grade
15 questions
black history month

Flashcard
•
8th Grade
15 questions
Semicolons, Colons, and Commas Review

Flashcard
•
9th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University
44 questions
El fin del año- 7th

Quiz
•
7th - 12th Grade
40 questions
Word Study Assessment: Roots, Prefixes, Suffixes, and Vocabulary

Quiz
•
8th Grade
17 questions
guess the logo

Quiz
•
8th Grade
16 questions
Function or Non-Function?

Quiz
•
8th - 10th Grade
15 questions
Sentence Fragments and Run-ons

Quiz
•
8th Grade