The number of tokens in the following statement is — For i = 1 to 10 Print…
2022
The number of tokens in the following statement is — For i = 1 to 10 Print (“xyz”) Next
- A.
26
- B.
11
- C.
3
- D.
6
Attempted by 330 students.
Show answer & explanation
Correct answer: B
We count tokens (keywords, identifiers, operators, constants, parentheses, strings). Statement: For i = 1 to 10 Print (“xyz”) Next Let's count: For
i
=
1
to
10
(
"xyz"
)
Next
Total = 11 tokens