A possibility to explain the answer $0.012$ could be that the password has to be alphanumeric, i.e. it is not allowed to be all letters or all numbers. Under this restriction, the total number of possible passwords is
given by $$9^8-8^8-1= 26.269.504$$
where $9^8$ is the total number of possibilities of filling $8 $places with $9$ characters, $8^8$ is the number of passwords containing only letters, and $1$ refers to the unique password containing only numbers $1$.
Considering then the passwords with no repeated characters, we can note that, to meet the condition of being alphanumeric, they all must contain the number $1$ one and only one time. As a result, they must also contain exactly $7$ letters. So their number is given by
$$ \binom{8}{7} \cdot 7! \cdot 8=322.560$$
where $ \binom{8}{7} $ is the number of possibilities to choose $7$ letters from the group of available $8$ letters, $7! $ are the permutations of the chosen letters, and $8$ refers to the fact that the number $1$ can be in any position within the password.
Therefore, the resulting probability is
$$\frac {322.560}{26.269.504} \approx 0.012$$