Year 8 - Python List (Homework Quiz 1)

Quiz
•
Computers
•
8th Grade
•
Easy
Tiew Ling
Used 2+ times
FREE Resource
10 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
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"]
3.
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")
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
#What is the output?
a,b,c,d
a,b,c
a,b,d
d,a,b
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lists are used to store single item in a single variable.
True
False
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lists are created using square brackets:
True
False
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the index number for 'Spain'?
['England','Brazil','Spain','France']
0
1
2
3
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
IT105 Review - Lists

Quiz
•
4th Grade - University
13 questions
Truyền thuyết về Overwatch

Quiz
•
KG - Professional Dev...
12 questions
Programming in Python: Sequences

Quiz
•
8th Grade
8 questions
User Input in Python

Quiz
•
8th Grade
8 questions
Variables in Python

Quiz
•
8th Grade
10 questions
Email Etiquette Quiz

Quiz
•
8th Grade
10 questions
Word basics

Quiz
•
8th - 12th Grade
12 questions
War Games

Quiz
•
7th - 8th Grade
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade