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

  1. A.

    26

  2. B.

    11

  3. C.

    3

  4. 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

Print

(

"xyz"

)

Next

Total = 11 tokens

Explore the full course: Niacl Ao It Specialist