The total number of seats for Uttarakhand in the Legislative Assembly of undivided Uttar Pradesh was

20
22
24
26

The correct answer is (c) 24.

Uttarakhand was carved out of Uttar Pradesh on November 9, 2000. Prior to that, it was a part of Uttar Pradesh and had 24 seats in the Legislative Assembly of Uttar Pradesh.

The other options are incorrect because they do not represent the actual number of seats that Uttarakhand had in the Legislative Assembly of Uttar Pradesh before it was carved out.