Question:

Any program consist of

Show Hint

In programming, tokens are the smallest units of code, encompassing keywords, operators, and identifiers. Understanding tokens is essential for understanding how code is parsed and executed.
Updated On: Jan 9, 2026
  • keywords
  • identifier
  • tokens
  • operators
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is C

Solution and Explanation

Step 1: Understanding the question.
This question asks about the basic components of any program. Programs consist of various parts that help define their structure and behavior. Tokens are the smallest units in a program, which can include keywords, operators, identifiers, and literals.
Step 2: Analyzing the options.
(A) keywords: This is incorrect. While keywords are important, they are just one part of the tokens in a program.
(B) identifier: This is also incorrect. Identifiers are part of the tokens, but they do not encompass all of the program's components.
(C) tokens: Correct — Tokens are the fundamental building blocks of a program, including keywords, operators, identifiers, etc.
(D) operators: This is incorrect. Operators are part of the tokens but do not make up the whole structure.
Step 3: Conclusion.
The correct answer is (C) tokens, as any program is composed of various tokens, including keywords, operators, identifiers, etc.
Was this answer helpful?
0
0