

list and operations
Presentation
•
English
•
11th Grade
•
Practice Problem
•
Easy
+3
Standards-aligned
Bruce Tabot
Used 2+ times
FREE Resource
7 Slides • 15 Questions
1
2
Multiple Choice
What is the benefit of using lists in programming?
They can only store one type of data
They are always faster than arrays
They provide the ability to store more than one value in the same variable
They cannot be accessed by index
3
Multiple Choice
Which data structure is best suited for storing key-value pairs?
List
Tuple
Dictionary
Set
4
5
Multiple Choice
What is the notation used to access the first element of a list in programming?
aList[0]
aList[1]
aList[i]
aList.first()
6
Multiple Choice
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"
7
8
Multiple Choice
What does the INSERT function do in the context of aList?
It removes an element from aList
It shifts elements to the right and adds a new value
It assigns a value to a specific index
It appends a value to the end of aList
9
Multiple Choice
How do you remove the element `10` from a list named `numbers`?
a) numbers.remove(10)
b) numbers.delete(10)
c) numbers.pop(10)
d) numbers.discard(10)
10
Multiple Choice
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")
11
Multiple Choice
Find the output of the code:
List = [True, 50, 10]
List.insert(2, 5)
print(List, "Sum is: ", sum(List))
[True, 50, 10, 5] Sum is: 66
[True, 50, 5, 10] Sum is: 65
TypeError: unsupported operand type(s) for +: ‘int’ and ‘str’
[True, 50, 5, 10] Sum is: 66
12
13
Multiple Choice
What does the REMOVE function do in the context of a list?
Removes an item at a specified index
Adds an item to the end of the list
Reverses the order of the list
Sorts the list in ascending order
14
15
Open Ended
Describe step-by-step what this program does.
16
Multiple Choice
What will be the output of the following code? ```python for i in range(3): if i == 1: continue print(i) ```
0 1 2
0 1
0 2
1 2
17
18
Fill in the Blanks
Type answer...
19
Multiple Choice
Part of a program is shown.
What happens in Lines 3 to 6 when the value 2.0 is entered at Line 2?
"Failed to qualify" message is displayed
"Congratulations" message is displayed
No message is displayed
Both messages are displayed
20
21
Multiple Choice
What will be printed by the following code?
1.5
2
0
3
22
Poll
How confident do you feel about this topic now?
Show answer
Auto Play
Slide 1 / 22
SLIDE
Similar Resources on Wayground
13 questions
Present Simple & Present Continuous
Presentation
•
11th Grade
19 questions
Cause & Effect
Presentation
•
11th Grade
18 questions
RECOUNT TEXT
Presentation
•
11th Grade
20 questions
I2 | Session 23
Presentation
•
11th - 12th Grade
18 questions
Perfect Verb Tenses
Presentation
•
KG
18 questions
Theme Christmas Movie Clips
Presentation
•
KG
15 questions
will: future
Presentation
•
11th Grade
16 questions
Oral Communication
Presentation
•
11th Grade
Popular Resources on Wayground
6 questions
Secondary Safety Quiz
Presentation
•
9th - 12th Grade
10 questions
MyPath Diagnostic Overview
Presentation
•
6th - 8th Grade
20 questions
Lab Safety Quiz
Quiz
•
6th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Adding and Subtracting Decimals
Quiz
•
5th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade
21 questions
Lab Safety
Quiz
•
10th Grade
Discover more resources for English
7 questions
Parts of Speech
Presentation
•
1st - 12th Grade
10 questions
Four Types of Sentences
Quiz
•
KG - 12th Grade
9 questions
E2 Literary Nonfiction
Presentation
•
8th - 12th Grade
8 questions
E2: Intro to Info
Presentation
•
9th - 12th Grade
16 questions
Inferences
Quiz
•
9th - 12th Grade
21 questions
CER Review
Presentation
•
1st - 12th Grade
16 questions
Seminar Syllabus Quiz
Quiz
•
9th - 12th Grade
11 questions
Holes, Chapters 6-10
Quiz
•
4th - 12th Grade