Lists FRQ Practice

Responses receive AI feedback against a rubric after submission. Scores are practice estimates.

Question 1 of 5

seats=["A","B","C","D"] (a) After INSERT(seats,2,"X")? (b) Then REMOVE(seats,4)? (c) LENGTH after both?

Question 2 of 5

nums=[5,6,7] (a) How INSERT(nums,1,4) shifts elements. (b) List after INSERT. (c) List after following APPEND(nums,8).

Question 3 of 5

line=[10,20,30,40,50]. REMOVE(line,2) then INSERT(line,2,99). (a) After REMOVE? (b) After INSERT? (c) Why index 2 for 99 even though 20 was originally at index 2?

Question 4 of 5

Fill the table. team starts [Ivy, Jade, Kai].

Step Operation List LENGTH
0 start [Ivy, Jade, Kai] 3
1 APPEND(team, Lee)
2 REMOVE(team, 1)

(a) Fill steps 1 and 2. (b) team[2] after step 2? (c) Why LENGTH decreased from step 1 to 2?

Question 5 of 5

buf=[1,3,5,7] buf[2] ← buf[4] REMOVE(buf,4) (a) After assignment only? (b) After REMOVE? (c) buf[3] after both?