Lists and Tuples

Quiz
•
Computers
•
11th Grade
•
Medium

Craig Ellis
Used 482+ times
FREE Resource
19 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which of these is the best description of a list in Python?
A list is a collection of data that has an order and can be changed
A list is a lot of variables
A list is used for shopping
A list is a collection of data that cannot hold duplicated data and cannot be changed
2.
MULTIPLE CHOICE QUESTION
2 mins • 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]
3.
MULTIPLE CHOICE QUESTION
2 mins • 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"
4.
MULTIPLE CHOICE QUESTION
2 mins • 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"]
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What would this code show on the screen?
7
6
5
4
An error
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What would this code return on the shell?
Nothing
An error
"Woo hoo, you scored!"
"Raheem"
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What sort of bracket is for lists?
(
<
}
[
Create a free account and access millions of resources
Similar Resources on Wayground
14 questions
PCS Typing Questions

Quiz
•
9th - 12th Grade
20 questions
Programming

Quiz
•
9th - 11th Grade
20 questions
Python Intermediate Quiz (Including pygame)

Quiz
•
3rd - 12th Grade
16 questions
Python Review

Quiz
•
9th - 12th Grade
20 questions
list 6th

Quiz
•
7th Grade - University
15 questions
Python Tuples Review

Quiz
•
11th Grade
15 questions
Python_quiz

Quiz
•
11th Grade
21 questions
Python-Checkpoint revision

Quiz
•
9th - 12th 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