Correct option is D
A token is a sequence of characters that are grouped together as a meaningful symbol in programming languages. Here is the breakdown of tokens in the given line:
for i in range (begin : end : step) :
1. for (keyword)
2. i (identifier)
3. in (keyword)
4. range (identifier)
5. ( (left parenthesis)
6. begin (identifier)
7. : (colon)
8. end (identifier)
9. : (colon)
10. step (identifier)
11. ) (right parenthesis)
12. : (colon)
Each of these is a separate token. Counting all these, we get a total of 12 tokens.