UPSC PYQPrelims 2017

Civil Services Examination · Question 38

There are 4 horizontal and 4 vertical lines, parallel and equidistant to one another on a board. What is the maximum number of rectangles and squares that can be formed?

  1. 16

  2. 24

  3. 36

  4. 42

Show answer & explanationShow explanation

Answer: (C) 36

Explanation

Concept: Any rectangle (including a square) on a grid is formed by selecting 2 horizontal lines and 2 vertical lines. Horizontal Pairs: Number of ways to choose 2 horizontal lines out of 4 ⇒ ⁴C₂ = (4 × 3)/2 = 6. Vertical Pairs: Number of ways to choose 2 vertical lines out of 4 ⇒ ⁴C₂ = (4 × 3)/2 = 6. Result: Total number of rectangles and squares = 6 × 6 = 36. Shortcut: For an n × n grid of lines (forming (n−1) × (n−1) = 3 × 3 cells), total rectangles and squares = [3(3+1)/2]² = 6² = 36. Correct Answer: (c) 36

Diagram explaining the answer