
BLSCM_Python2

Quiz
•
Other
•
University
•
Medium

Laura Calvet Liñan
Used 1+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
14 questions
2R C-Skill Lab Test Autumn 2024-25

Quiz
•
University
10 questions
Stack Data Structure

Quiz
•
University
10 questions
BSM - Referencing in the Extended Essay

Quiz
•
11th Grade - University
10 questions
VR and Trello QUIZ

Quiz
•
University
10 questions
Our Night

Quiz
•
University
10 questions
Minecraft Quiz

Quiz
•
KG - Professional Dev...
15 questions
Among Us (The Skelds)

Quiz
•
KG - Professional Dev...
10 questions
Module 6: Defensive Security

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Other
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University