List Operations Review
Quiz
•
Computers
•
11th Grade
•
Medium
Harmeet Kaur
Used 10+ times
FREE Resource
Enhance your content
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is a list in Python?
C. A type of immutable sequence
B. A type of container that stores a list of values of any type
A. A type of sequence like tuples and strings
D. A type of string
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
How can a list be created in Python?
A. Using curly brackets
B. Using parentheses
C. Using square brackets
D. Using angle brackets
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of evaluating the expression 'eval("5+10")' in Python?
D. Error
C. 510
B. 50
A. 15
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the main difference between strings and lists in Python?
A. Strings are mutable, lists are immutable
D. Lists cannot be used in loops
B. Strings are immutable, lists are mutable
C. Strings cannot be accessed using indexes
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
How can two lists be joined in Python?
A. Using the join() method
B. Using the merge() function
D. Using the append() method
C. Using the + operator
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the expression 'val[0:3]' in Python?
A. [10,20,30]
B. [40,1,2]
C. [100,200]
D. Error
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the result of the expression 'val[0:9:2]' in Python?
A. [10,30,1,3,200]
B. [10,20,30,40,1,2,3,100,200]
C. [10,20,30,40,1,2,3]
D. Error
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
Python - lists,loops,basics
Quiz
•
9th - 11th Grade
20 questions
Gateway Level 3 Python Quiz 2
Quiz
•
9th - 12th Grade
15 questions
Python Lists
Quiz
•
10th - 12th Grade
15 questions
Python Programming Random Quiz
Quiz
•
11th Grade
20 questions
Python Quiz (part 1)
Quiz
•
9th - 12th Grade
18 questions
Coding review
Quiz
•
11th Grade
19 questions
CMU Unit 3 Practice Test
Quiz
•
10th - 12th Grade
19 questions
Computer Science Quiz 02
Quiz
•
10th Grade - University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade