Question 85Asked in DSSSB PGT Computer Science (Technical), 11 Jul 2021

In C++, bool data type is used to hold how many values?

  1. An²
  2. B2
  3. C2n
  4. D2ⁿ
Show answerHide answer

Correct answer: (B) 2

Explanation

bool holds only two values: true and false.

From DSSSB PGT Computer Science PYQ (Technical), 11 Jul 2021

This is question 85 of DSSSB PGT Computer Science PYQ (Technical), 11 Jul 2021. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.