
BLSCM_Python2
Quiz
•
Other
•
University
•
Practice Problem
•
Medium
Laura Calvet Liñan
Used 1+ times
FREE Resource
Enhance your content in a minute
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the correct way to create a list in Python?
my_list =
(1, 2, 3)
{1, 2, 3}
[1, 2, 3]
<1, 2, 3>
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
How do you modify the first element of a list
my_list = [10, 20, 30]
to 100?
my_list(0) = 100
my_list[1] = 100
my_list[0] = 100
my_list = [100]
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following correctly appends 50 to the list my_list = [10, 20, 30]?
my_list.append(50)
my_list.add(50)
my_list.insert(50)
my_list += [50]
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
How do you remove the value 20 from the list my_list = [10, 20, 30]?
my_list.delete(20)
my_list.remove(20)
my_list.pop(20)
my_list.clear(20)
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What does my_list[1:3] return for my_list = [10, 20, 30, 40]?
[20, 30, 40]
[30, 40]
[20, 30]
[10, 20]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access the value associated with the key 'age' in the dictionary
person = {'name': 'Alice', 'age': 25}?
person['name']
person.get('age')
person.age
person['25']
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code?
x = 10
if x > 5:
print("Greater")
else:
print("Smaller")
Greater
Smaller
None
Error
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
16 questions
Freight Rate
Quiz
•
University
11 questions
แฟนพันธุ์แท้เพชรในตม
Quiz
•
University
13 questions
Katasztrófavédelmi teszt
Quiz
•
University
10 questions
Redacción Técnica Científica #5
Quiz
•
University
10 questions
Suku Huaulu_Pekan Nusantara
Quiz
•
7th Grade - Professio...
10 questions
Taller 1 (4to): Captura y codificación de los datos en SPSS
Quiz
•
University
13 questions
Among Us
Quiz
•
1st Grade - Professio...
10 questions
CCHU5001_Week 3_Quiz
Quiz
•
University
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
Discover more resources for Other
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University
