- Are true and false keywords?
-
True
-
False
Reveal answer
Fill a bubble to check yourself
B
Correct answer
Explanation
In Java, true and false are boolean literals rather than keywords, even though they cannot be used as identifiers.
AI explanation
To answer this question, we need to understand the concept of keywords in programming languages.
Option A) True - This option is incorrect because "True" is not a keyword in most programming languages. While some programming languages may have a keyword called "True" to represent a boolean value of true, it is not universally recognized as a keyword.
Option B) False - This option is correct because "False" is not a keyword in programming languages. In most programming languages, the keywords for representing boolean values are typically "true" and "false" (in lowercase).
The correct answer is B) False.