
1045 week 7 (Transforming Sequences (Mutability & Memory))
Authored by Ajay Kanagendran
Fun, Computers
University
Used 8+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
str1 = "apple"
str2 = str1
str2 += "s"
print(str1)
What would the code above have as an output?
apple
apples
s
str1
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Related to previous question:
Why was the output "apple"?
Python string are mutable
Python string are immutable
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do we use shallow/deepcopy?
We just call the respective functions
Depends on my computer
Import then call the respective functions
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
lst1 = [1, 2, 3]
lst2 = [2, 4, 6]
lst2[2] = [5]
print(lst1)
What's the output of this code?
[1,2,3]
[1,5,3]
[1,2,5]
[2,4,6]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
lst1 = [1, 2, 3]
lst2 = lst1
lst2[1] = 9
print(lst1)
What is the output of the code above?
[1,2,3]
[1,2,9]
[9,2,3]
[1,9,3]
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
10 questions
INTRODUCCION A LA PROGRAMACION
Quiz
•
6th Grade - University
10 questions
Hyrje në SO
Quiz
•
University
10 questions
2025 python class first quiz
Quiz
•
9th Grade - University
10 questions
Let's Play Together
Quiz
•
University - Professi...
10 questions
Manajemen Keuangan
Quiz
•
University
10 questions
Machine Learning (Introduction)
Quiz
•
University
10 questions
yoga 6
Quiz
•
University
10 questions
Ghicitori grele
Quiz
•
KG - Professional Dev...
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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