Big Idea 3 · Topic 3.10 · Exercise 1
Trace the Step Log
25 minutes
Back to the Topic 3.10 lessonAll CSP topics
How this page works
The writing boxes below are yours. What you type stays in this browser, is saved here as you go, and is never sent to us or to your teacher. Hand the written work in the way your teacher asked for it.
The graded check at the bottom is the part that records to your teacher's gradebook.
Part B, from your handoutNot recorded
Your handout says these are the same items available here. Part A stays on paper.
Q1 · 3 points on the handout
Write your own two-operation sequence on a list scores <- [50, 60, 70] where the FIRST operation changes the length and the SECOND does not. State the list and LENGTH after each, and label which operation resized the list.
Q2 · 3 points on the handout
A program tries to read aList[0] to get the first element of a list. On the exam reference sheet, what actually happens, and what is the correct expression for the first and last elements?
Q3 · 2 points on the handout
ENRICHMENT: The reference sheet writes APPEND(aList, value), but Python writes aList.append(value) and JavaScript writes aList.push(value). Explain, using EK AAP-2.N.2, why these are all correct even though the syntax differs.
Q4 · 0 points on the handout
Next step: you traced these operations by hand. Now head to the Topic 3.10 page and type and run the harder versions, where the computer checks your output for you.
No graded check on this page yetNot recorded
About the line in your handout
Your handout says this exercise is available online and auto-graded. The exercise IS here, and it is the same work in the same order, but the auto-graded half is not written for this topic yet. Nothing on this page is scored or sent to your teacher.
Hand this in the way your teacher asked for it. Topic 1.1 has its graded check today, and the rest follow.