You seem to be have trouble with set notation. $X$ is a place holder variable that is not any actual set. It merely means "Let $X$ be any element of $P(A)$" which is to say "Let $X$ be any subset of $A$".
So $\{X| X\in P(A); |X| \le 1\} =$ the set of all subsets of $A$ that have a cardinality of at most one.
And the question "what is the cardinality of $\{X| X\in P(A); |X| \le 1\}$" is asking nothing more or less than "how many subsets of $A$ have one or fewer elements".
And the answer to that is obvious. The empty set is a subset with zero elements, and every set with a single element has one element. And any set with more than one element has a cardinality of more than one. As there are $n$ elements in $A$ there are $n$ sets with a single element. Adding the empty set we have the cardinality is $n+1$.
Another way of looking at this is:
If $A = \{a_1,a_2,......, a_n\}$ then $\{X| X\in P(A); |X| \le 1\}=\{\emptyset, \{a_1\},\{a_2\},....., \{a_n\}\}$