Question 1
Soren is writing a program for a neighborhood bakery that keeps track of how many cookies are sitting on the front display tray during the morning.
Goal: the program should show 4, then 12, then 7, and finally the message Tray updated.
- Set cookies to 4, then show cookies.
- Add 3 to cookies, then show cookies.
- Subtract 5 from cookies, then show cookies.
- Show the message Tray updated.
Which of the four steps causes the program's first wrong result?
Choose one answer.
- Step 3
- Step 4
- Step 1
- Step 2
