Exam-style question
Try this first
What is the value of total after this pseudocode is executed? total <- 7 value <- 3 total <- total + value.
- A.3
- B.4
- C.7
- D.10
Model answer
What a good answer should say
- 10
Explanation
Why this works
The final assignment adds the current value of value, 3, to total, which is 7. Therefore, total becomes 10.
Common mistake
No common mistake is linked to this question yet.
