Which of the following is the correct way to create a list containing the numbers 1, 2, and 3 in Python?
Section 3A: Collect and process data using lists

Quiz
•
Computers
•
12th Grade
•
Medium
Misti McDaniel
Used 4+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
list = 1, 2, 3
list = [1, 2, 3]
list = (1, 2, 3)
list = {1, 2, 3}
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following Python lists best represents a vector of three dimensions?
[5]
[2, 4, 6]
[1, 2]
[7, 8, 9, 10]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given two vectors in Python, `a = [1, 2, 3]` and `b = [4, 5, 6]`, which code correctly creates a new vector `c` that is the concatenation of `a` and `b`?
c = a + b
c = a * b
c = a - b
c = a / b
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following code output? ```python numbers = [10, 20, 30, 40] print(numbers[2]) ```
10
20
30
40
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to determine the number of elements in a list (vector) in Python?
count()
size()
len()
length()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the list `fruits = ['apple', 'banana', 'cherry', 'date']`, what is the result of `fruits[1:3]`?
['banana', 'cherry']
['apple', 'banana']
['cherry', 'date']
['banana', 'cherry', 'date']
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If `my_vector = [5, 10, 15, 20, 25]`, which of the following expressions returns the last two elements?
my_vector[3:5]
my_vector[-2:]
my_vector[2:4]
my_vector[:2]
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
Python Revision Tour - I

Quiz
•
12th Grade
20 questions
Python Programming Quiz

Quiz
•
9th Grade - University
20 questions
Python Quiz

Quiz
•
12th Grade
10 questions
Python Generators

Quiz
•
10th Grade - University
10 questions
Python lists and tuples

Quiz
•
12th Grade
15 questions
list in python

Quiz
•
10th - 12th Grade
18 questions
Computer Science LISTS

Quiz
•
12th Grade
20 questions
Python Data Types Quiz

Quiz
•
10th Grade - University
Popular Resources on Quizizz
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
Discover more resources for Computers
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