The eigenfunctions result from the boundary conditions. The generic solution to the differential equation is
$$ \psi(x) = A \cos{\lambda x} + B \sin{\lambda x} $$
We then apply the boundary condition $\psi(0) = 0$ and get
$$A \cos{0} + B \sin{0} = A = 0$$
The boundary condition $\psi(1) = 0$ implies that
$$B \sin{\lambda} = 0$$
We assume that $B \ne 0$. This latter equation puts a condition on the values of $\lambda$:
$$\sin{\lambda} = 0 \implies \lambda = n \pi \; \forall n \in \mathbb{Z}$$
We then may define $\lambda_n = n \pi$ as an eigenvalue of the differential operator defined above (the equation plus the boundary conditions). The general solution to this equation is a linear combination of eigenfunctions, that is, $\psi_n(x) = \cos{\lambda_n x}$.
By the way, maybe I am missing something, but (c) makes no sense to me, as $1-x$ does not satisfy the boundary conditions satisfied by the eigenfunctions $\psi_n(x)$.