Aspire's Library

A Place for Latest Exam wise Questions, Videos, Previous Year Papers,
Study Stuff for MCA Examinations - NIMCET

Previous Year Question (PYQs)



The number of tokens in the following line:

for i in range(begin : end : step) :






Solution

Tokens are the smallest meaningful units of a program.


Break the statement:


for | i | in | range | ( | begin | : | end | : | step | ) | :


Tokens:


for


i


in


range


(


begin


:


end


:


step


)


:


Total tokens = 12



Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More


Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More

Ask Your Question or Put Your Review.

loading...