ProgrammingModerate

The sum of the entries of row 4 of Pascal's triangle (row 0 at the top) is what?

  1. A. 8
  2. B. 15
  3. C. 32
  4. D. 16

Correct answer: D. 16

Row n of Pascal's triangle sums to 2^n (the number of subsets of n items), so row 4 = 1, 4, 6, 4, 1 sums to 16. 32 counts the top row as row 1 and uses 2^5.

More C Programming questions

Exams that ask this topic