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

Quiz
•
Computers
•
11th - 12th Grade
•
Medium
Vivekta Singh
Used 93+ times
FREE Resource
20 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"]
nameList = [John, Harry, Jesse, John, Harry, Harry]
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
List items have an index number. In the following list, which item has the index number of 3?
["John", "Harry", "Jesse", "John", "Harry", "Harry"]
"John"
"Harry"
"Jesse"
"John"
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is a list in python?
A collection of variables
A collection of items assigned to a single variable
A statement that cant be changed
A Christmas list
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the index number for 'Spain'?
['England','Brazil','Spain','France']
0
1
2
3
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which code would i use to add an item to a list?
variable.add()
variable.append()
append.variable()
add.variable()
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Why is using lists beneficial?
Shorter Code
More Accurate
It takes less time for the program to run
Its not beneficial
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What sort of loop is this?
Count Controlled
Condition Controlled
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
Python Lists

Quiz
•
10th - 12th Grade
19 questions
Lists and Tuples

Quiz
•
11th Grade
25 questions
Final Exam P2Q2

Quiz
•
12th Grade
15 questions
Python - тест

Quiz
•
1st - 12th Grade
20 questions
Exam on Lists - Python

Quiz
•
9th - 12th Grade
20 questions
String & List in Python

Quiz
•
11th - 12th Grade
15 questions
Python Revision Tour - I

Quiz
•
12th Grade
20 questions
Python - lists,loops,basics

Quiz
•
9th - 11th 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
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

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

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

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

Quiz
•
KG - University