Question:

What are keywords?

Show Hint

Do not use keywords as variable names or function names, as they are reserved by the programming language.
Updated On: Jan 9, 2026
Hide Solution
collegedunia
Verified By Collegedunia

Solution and Explanation

Step 1: Understanding Keywords.
Keywords are reserved words in a programming language that have a special meaning and cannot be used as identifiers (names for variables, functions, etc.). These words define the syntax and structure of the language. Examples include `if`, `else`, `while`, `int`, `return`, etc.
Step 2: Importance of Keywords.
Keywords play an essential role in the structure and functionality of a program. They help the compiler or interpreter understand the code and perform specific operations, such as conditional logic, looping, and defining data types.
Step 3: Conclusion.
Keywords are predefined by the language and cannot be altered. They are the building blocks of a programming language.
Was this answer helpful?
0
0