
Python List -Plenary Quiz
Quiz
•
Computers
•
9th Grade
•
Practice Problem
•
Medium
Tincy Varghese
Used 9+ times
FREE Resource
Enhance your content in a minute
8 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"]
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 Wayground
10 questions
SOFTWARE Y HARDWARE
Quiz
•
1st - 10th Grade
10 questions
Encryption
Quiz
•
4th - 10th Grade
10 questions
Word basics
Quiz
•
8th - 12th Grade
10 questions
KS4 Programming Techniques (1)
Quiz
•
8th - 10th Grade
10 questions
Introduction to MS Access 2013
Quiz
•
7th Grade - University
10 questions
Intro to Comp Sci U1: L 1
Quiz
•
9th - 12th Grade
12 questions
URL and IP
Quiz
•
8th - 10th Grade
10 questions
Internet
Quiz
•
7th - 10th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
