Exam-style question
Try this first
Consider the following pseudocode: `count = 0` `data = [10, 20, 5, 30]` `FOR each item in data DO` `IF item > 15 THEN` `count = count + 1` `END IF` `END FOR` `OUTPUT count` What value will be outputted?.
- A.0
- B.1
- C.2
- D.3
Answer and explanation
Attempt the question first, then reveal the model answer and explanation.
Common mistake
No common mistake is linked to this question yet.
