ProgrammingModerate

On a 5 x 5 grid the number of cells on its boundary (first and last row, first and last column) is what?

  1. A. 20
  2. B. 16
  3. C. 12
  4. D. 9

Correct answer: B. 16

A 5 x 5 grid has 25 cells, and the 3 x 3 interior has 9, so 25 - 9 = 16 boundary cells.

More C Programming questions

Exams that ask this topic