The first part is simple. except zero, all digits can go at first and the remaining positions can be either of the six digits. So the total number of 4-digit numbers is:
$$A=5\times6\times6\times6$$
For the second part, the number of 4-digit numbers with no repeat is
$$B=5\times5\times4\times3$$
So the number of them with at least one repeat is $A-B$.
How many six-digit positive integers contain exactly two even digits?
Remember that an integer $n$ is said to be even if there exists an integer $m$ such that $n = 2m$. An integer that is not even is said to be odd. Hence, there are five even digits: $$0, 2, 4, 6, 8$$ and five odd digits: $$1, 3, 5, 7, 9$$
Your strategy of breaking the problem into two cases is correct. Let's correct your calculations for those cases.
Case 1: The leading digit is even.
Since the leading cannot be zero, there are four ways to fill the leading digit. There are five ways to choose the position of the other even digit and five ways to fill that position with an even digit. There are five ways to fill each of the four remaining positions with an odd digit.
$$4 \binom{5}{1} \cdot 5 \cdot 5^4 = 4 \binom{5}{1} 5^5$$
Case 2: The leading digit is odd.
Two of the remaining five positions must be filled with even digits. There are $\binom{5}{2}$ ways to select the positions of the even digits and five ways to fill each of those positions with an even digit. There are five ways to fill each of the four other positions with an odd digit.
$$\binom{5}{2} \cdot 5^2 \cdot 5^4 = \binom{5}{2} 5^6$$
Total: Since the above cases are mutually exclusive and exhaustive, the number of six-digit positive integers that contain exactly two even digits is
$$4 \binom{5}{1} 5^5 + \binom{5}{2} 5^6$$
In how many five-digit positive integers are there digits that appear more than once?
Hint: Subtract the number of five-digit positive integers in which all the digits are distinct from the total number of five-digit positive integers.
The total number of five-digit positive integers is $$9 \cdot 10 \cdot 10 \cdot 10 \cdot 10 = 90000$$ since the leading digit can be chosen in nine ways (as $0$ is prohibited) and each of the remaining digits can be selected in $10$ ways. Alternatively, the largest five-digit number is $99999$ and the largest number with fewer than five digits is $9999$, so the number of five-digit positive integers is $$99999 - 9999 = 90000$$ The number of five-digit positive integers with distinct digits is $$9 \cdot 9 \cdot 8 \cdot 7 \cdot 6 = 27216$$ since we have nine choices for the leading digit (as $0$ is prohibited), nine choices for the thousands digit (since we cannot use the leading digit), eight choices for the hundreds digit (since we cannot use the tens thousands or thousands digits), seven choices for the tens digit, and six choices for the units digit. Therefore, the number of five-digit positive integers that do contain a digit that appears more than once is $$9 \cdot 10 \cdot 10 \cdot 10 \cdot 10 - 9 \cdot 9 \cdot 8 \cdot 7 \cdot 6 = 90000 - 27216 = 62784$$
Best Answer
Your working is correct if the repetition of digits is not allowed. $4500$ is the count of $4$ digit even numbers with repetition allowed. We know there are $9000$ numbers between $1000$ and $9999$. Half of them are even.
An alternate working if the repetition of digits is not allowed -
If we allow the thousand place to have zero, we have total of $10 \cdot 9 \cdot 8 \cdot 7 = 5040$ numbers and half of them ($2520$) will be even numbers.
We now subtract count of even numbers with $0$ in thousand place as they are not truly four digit numbers - there are $4$ choices for one's place for it to be even number ($2, 4, 6, 8$) and then that gives $8 \cdot 7 = 56$ choices for the ten's and hundred's place.
That leads to $2520 - 4 \cdot 56 = 2296$ even numbers.