If the consumer price index at the end of 2011 was 100 and at the end of 2012 was 120, then the rate of inflation for 2012 was

25%.
20%.
16,66%.
1,5%.

The rate of inflation can be calculated using the formula:

Inflation rate = ((CPI at end of 2012 - CPI at end of 2011) / CPI at end of 2011) * 100

Plugging in the values, we get:

Inflation rate = ((120 - 100) / 100) * 100
Inflation rate = (20 / 100) * 100
Inflation rate = 0.2 * 100
Inflation rate = 20%

Therefore, the rate of inflation for 2012 was 20%.