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
Answer and explanation
Concise answer
10
Why this is correct
The final assignment adds the current value of value, 3, to total, which is 7. Therefore, total becomes 10.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
