Lists — Chapter Test

Answer all 5 questions, then submit. You need 60% to pass. Log in to save progress.

Question 1
How do lists differ from strings?
ALists are immutable, strings are mutable
BLists are mutable, strings are immutable
CBoth are immutable
DLists cannot be indexed
Question 2
Which method adds an item to the END of a list?
Ainsert()
Bappend()
Cextend()
Dadd()
Question 3
What does nums.pop() do with no argument?
ARemoves the first item
BRemoves and returns the last item
CEmpties the list
DSorts the list
Question 4
For matrix = [[1,2,3],[4,5,6]], what is matrix[1][0]?
A1
B2
C4
D6
Question 5
Which returns a NEW sorted list without changing the original?
Asort()
Bsorted()
Creverse()
Dorder()