
Section 3A: Collect and process data using lists
Authored by Misti McDaniel
Computers
12th Grade
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to create a list containing the numbers 1, 2, and 3 in Python?
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]
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
Ôn tập kỳ 2 tin 6
Quiz
•
1st - 12th Grade
11 questions
Cascading Style Sheets
Quiz
•
8th - 12th Grade
13 questions
RAM&HDD/SSD
Quiz
•
10th - 12th Grade
10 questions
PRE-ASSESSMENT ETECH M1
Quiz
•
12th Grade
20 questions
ASPEK LEGAL TIK XII
Quiz
•
12th Grade
20 questions
ทดสอบ กาผลิตสื่อดิจิตอล ครั้งที่ 1 Digital media
Quiz
•
12th Grade
10 questions
Server Administration- Quiz 1
Quiz
•
12th Grade - University
20 questions
Ինֆորմատիկա 10 II կիսամյակի ամփոփիչ աշխատանք
Quiz
•
10th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade