
2D Lists Python

Quiz
•
Computers
•
9th - 11th Grade
•
Medium

Mr Abbas
Used 25+ times
FREE Resource
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is the correct code for creating a list of names?
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
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)
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",7]
nameList.append("Felipe")
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To print a list called fruitList we use
print(fruitList)
list(print)
fruitList.print()
fruitList(print)
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The following array is created in a program: " DIREWOLVES = ["Nymeria","Shaggy Dog","Ghost","Lady","Grey Wind","Summer"]
What is the item stored in DIREWOLVES [2] ?
"Shaggy Dog"
"Ghost"
Create a free account and access millions of resources
Similar Resources on Wayground
13 questions
Python List Operations

Quiz
•
10th Grade
16 questions
Python Review

Quiz
•
9th - 12th Grade
10 questions
python variables and commands

Quiz
•
9th Grade
18 questions
Final Test Python Code

Quiz
•
9th - 12th Grade
18 questions
CT18 Revision

Quiz
•
9th Grade
10 questions
Module 08 - Lists

Quiz
•
10th Grade
15 questions
2D Arrays

Quiz
•
9th - 12th Grade
15 questions
Google Drive

Quiz
•
3rd - 9th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade