ProgrammingModerate

What is the parity of the number 0b1101011 (1 for odd count of set bits)?

  1. A. 0
  2. B. 2
  3. C. 1
  4. D. 5

Correct answer: C. 1

0b1101011 has five set bits, an odd count, so the parity is 1.

More C Programming questions

Exams that ask this topic