Question:

How many keywords are there in C++ ?

Show Hint

The number of keywords in C++ isn't static; it increases as new features are added to the language with new standards. For tests, look for a number in the 80-100 range for modern C++.
  • 82
  • 48
  • 99
  • 95
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is D

Solution and Explanation

Step 1: Understand what a keyword is. A keyword is a reserved word with a special meaning to the compiler. It cannot be used as an identifier (e.g., a variable name).
Step 2: Check the C++ standard. The number of keywords in C++ has grown with each new version of the standard (C++11, C++14, C++17, C++20, etc.).

C++98 had 63 keywords.
C++11 added 10 more.
C++20 has over 90 keywords.
Looking at the options, 95 is a plausible number for a recent C++ standard (around C++20). The number can be fluid, but it is in this range. For example, C++23 adds more. Option (B) 48 is closer to the number of keywords in C.
Was this answer helpful?
0
0