Multiple choice technology programming languages

By which keyword Boolean data type is expressed in C++?

  1. boolean

  2. boo

  3. bolean

  4. bool

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

In C++, the keyword bool is used to declare variables that hold Boolean values (true or false). Distractors like boolean are used in other languages such as Java, while boo and bolean are misspelled or non-existent keywords in C++ syntax.