

Midtest
Presentation
•
World Languages
•
KG
•
Practice Problem
•
Hard
joeee joeee
Used 2+ times
FREE Resource
1 Slide • 4 Questions
1
reference code to finish test
2
Multiple Choice
Joe wants to add the number 6 to the end of the list.
Which one of the following is the correct way to do so?
1. numbers.add(6)
2. numbers.append(6) 3. numbers.push(6) 4. numbers.put(6)
Find the same example code as option
fruits.append('grape') print(fruits) # ['banana', 'apple', 'kiwi', 'banana', 'pear', 'apple', 'orange', 'grape']
fruits.pop() print(fruits) # ['banana', 'apple', 'kiwi', 'banana', 'pear', 'apple', 'orange']
fruits.remove('apple') print(fruits) # ['banana', 'kiwi', 'banana', 'pear', 'apple', 'orange']
print(fruits[1]) # 'kiwi'
3
Multiple Choice
Joe changes his mind. That is, he does not end up adding 6 to the end of the list. Instead, Joe wants to remove the last number 2 from the end of the list.
Which one of the following is the correct way to do so?
1. numbers.pop()
2. numbers.delete() 3. numbers.erase() 4. numbers.remove()
fruits.append('grape') print(fruits) # ['banana', 'apple', 'kiwi', 'banana', 'pear', 'apple', 'orange', 'grape']
fruits.pop() print(fruits) # ['banana', 'apple', 'kiwi', 'banana', 'pear', 'apple', 'orange']
fruits.remove('apple') print(fruits) # ['banana', 'kiwi', 'banana', 'pear', 'apple', 'orange']
print(fruits[1]) # 'kiwi'
4
Multiple Choice
Joe now also wants to remove the first number 1 from the list. Which one of the following is the correct way to do so?
1. numbers.pop(1)
2. numbers.delete(1) 3. numbers.erase(1) 4. numbers.remove(1)
fruits.append('grape') print(fruits) # ['banana', 'apple', 'kiwi', 'banana', 'pear', 'apple', 'orange', 'grape']
fruits.pop() print(fruits) # ['banana', 'apple', 'kiwi', 'banana', 'pear', 'apple', 'orange']
fruits.remove('apple') print(fruits) # ['banana', 'kiwi', 'banana', 'pear', 'apple', 'orange']
print(fruits[1]) # 'kiwi'
5
Multiple Choice
Joe wants to retrieve the second number 5 from the list.
Which one of the following is the correct way to do so?
1. numbers[1] 2. numbers[2] 3. numbers[5]
fruits.append('grape') print(fruits) # ['banana', 'apple', 'kiwi', 'banana', 'pear', 'apple', 'orange', 'grape']
fruits.pop() print(fruits) # ['banana', 'apple', 'kiwi', 'banana', 'pear', 'apple', 'orange']
fruits.remove('apple') print(fruits) # ['banana', 'kiwi', 'banana', 'pear', 'apple', 'orange']
print(fruits[1]) # 'kiwi'
reference code to finish test
Show answer
Auto Play
Slide 1 / 5
SLIDE
Similar Resources on Wayground
8 questions
Grade 7 Lesson 1
Presentation
•
7th Grade
4 questions
Ελληνική κουζίνα
Presentation
•
5th - 6th Grade
6 questions
Poser une question
Presentation
•
1st - 5th Grade
5 questions
3A. El desayuno, la comida y las bebidas
Presentation
•
8th Grade
2 questions
Parts of a word processor window
Presentation
•
5th Grade
5 questions
Πρωινό στη Γαλλία
Presentation
•
5th - 6th Grade
3 questions
Quizlet and Google Forms
Presentation
•
University
6 questions
Mathematics with Jenna-multiplcation for 3rd grade
Presentation
•
2nd - 3rd Grade
Popular Resources on Wayground
6 questions
PRIDE Always and Everywhere
Presentation
•
12th Grade
20 questions
Lab Safety Quiz
Quiz
•
6th Grade
26 questions
KOR Review Kahoot Questions
Quiz
•
8th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
12 questions
Unit Zero lesson 2 cafeteria
Presentation
•
9th - 12th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
10 questions
Riddles Riddles fun Riddles
Quiz
•
6th - 12th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade