Question
Given the following pseudocode:
```
10 FOR Q=1 TO 100
20 PRINT Q
30 NEXT Q
40 EXIT
```
Which of the following best represents line 10?
- A. Attribute
- B. Sequence
- C. Branch
- D. Loop Correct
Explanation
Line 10 starts a FOR loop: it sets a counter Q from 1 to 100, and NEXT Q on line 30 sends execution back so line 20 repeats 100 times. Repeating a block a set number of times is a loop. A branch chooses one path based on a condition (IF/THEN) rather than repeating, a sequence is simply statements run one after another, and an attribute is a property of an object, not a control structure.