Number of ways in which the first digit can be filled = Number of digits available for filling it = 2 {1,2} (Since the first one cannot be 0)
Number of ways of filling the remaining four palaces = 3 each (as each place can be filled with either 1, 2 or 0)
By fundamental principle of counting, number of five digit numbers that can be formed = 23333 = 234