num = [1,2,3,4,2,6,4,7,2,]
print(num.count(2))
Chapter 3 Part 2 Practice
Quiz
•
Computers
•
12th Grade
•
Medium
Michelle Mattox
Used 9+ times
FREE Resource
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
num = [1,2,3,4,2,6,4,7,2,]
print(num.count(2))
0
1
2
3
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method should be used to add an item to the end of a list?
insert
pop
append
extend
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
list1 = ['a', 'c', 'd', 'e']
To add a 'b' in the second position use which of the following:
insert
pop
append
extend
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
list1 = ['a', b', 'c'] list2 = [ 'd', 'e', 'f']
Which method performs the same action as list1 + list2?
insert
pop
append
extend
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
list1 = [7,3,2,1,3]
print(list.sort( ))
[1,2,3,7]
[1,2,3,3,7]
[7,3,3,2,1]
[7,3,1,2]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
list1 = [7,5,3,2,6,3]
print(list1.reverse( ))
[2,3,3,5,6,7]
[7,6,5,3,3,2]
[3,6,2,3,5,7]
[6,2,3,5,7]
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct list comprehension for
s = [ ]
for i in range(10):
s = s + [i]
s = [i for i in range(10)]
s = [for i in range(10) i]
14 questions
Python List Basics
Quiz
•
12th Grade
14 questions
Bài 29. Nhận biết lỗi chương trình
Quiz
•
9th - 12th Grade
15 questions
JAVA: Level-1
Quiz
•
5th - 12th Grade
19 questions
Java Base
Quiz
•
9th - 12th Grade
23 questions
Ôn tập kì Xuân Tin học 10. 2
Quiz
•
10th Grade - University
15 questions
list in python
Quiz
•
10th - 12th Grade
21 questions
ÔN TẬP KIỂU XÂU
Quiz
•
1st - 12th Grade
15 questions
Python Lists
Quiz
•
10th - 12th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression
Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University