Which of these is the correct code for creating a list of names?

Python List -Plenary Quiz

Quiz
•
Computers
•
9th Grade
•
Medium
Tincy Varghese
Used 9+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
nameList = John, Harry, Jesse, John, Harry, Harry
nameList = [John, Harry, Jesse, John, Harry, Harry]
nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the following list, which item has the index number of 3?
["John", "Harry", "Jesse", "John", "Harry", "Harry"]
"John"
"Harry"
"Jesse"
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these pieces of code would return the name "Harry" from the following list?
nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]
nameList()
nameList[1]
NameList(4)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The list needs one more name added to the end - "Felipe". Which piece of code below would do this?
nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]
nameList.append(Felipe)
append(nameList,"Felipe")
nameList.append("Felipe")
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To insert an the string "strawberries" in the first position of a list we use
fruit.append("strawberries, 1")
fruit.insert(1, "strawberries")
fruit.insert(0, "strawberries")
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output?
grades=[21, 35, 67, 45, 99, 51]
grades.insert(1,68)
print(grades)
[21, 68,35,67,45, 99, 51]
[21, 35, 45, 67, 99]
[67, 35, 51, 45, 99]
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following list function?
sampleList = [10, 20, 30, 40, 50]
sampleList.append(60)
print(sampleList)
sampleList.append(60)
print(sampleList)
[10, 20, 30, 40, 50, 60]
[10, 20, 30, 40, 50, 60]
[10, 20, 30, 40, 50, 60]
[10, 20, 30, 40, 50, 60, 60]
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does Append() function do in python?
Add the new element at the first position of the list
Add the new element at the last position of the list
Add new element at the middle of the list
Similar Resources on Quizizz
10 questions
Python list

Quiz
•
9th Grade
10 questions
AP CSP - Python Lists and Arrays

Quiz
•
9th - 12th Grade
11 questions
Python Arrays

Quiz
•
9th - 10th Grade
12 questions
Code.org Unit 6 - Lists

Quiz
•
9th - 12th Grade
13 questions
Truyền thuyết về Overwatch

Quiz
•
KG - Professional Dev...
10 questions
Lists in Python

Quiz
•
9th Grade
10 questions
Python Concepts

Quiz
•
9th Grade
10 questions
Списки Python + Pygame

Quiz
•
KG - University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade
27 questions
STAAR English 1 Review

Quiz
•
9th Grade
20 questions
Understanding Linear Equations and Slopes

Quiz
•
9th - 12th Grade