All mock tests are FREE till 31 December — register to save your progress
Unit 8 · Theory of Computation and Compilers Paper 2 CS · June 2024 (Cancelled Exam)

The number of tokens in the line ' for i in range (begin; end ; step) : ' is:

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: D. 12

Explanation

Tokens: for, i, in, range, (, begin, ;, end, ;, step, ), : = 12.

More Theory of Computation and Compilers questions