I am trying to figure out why, for finding confidence intervals, we use the following standard error
$$SE = \sqrt{\frac{p(1-p)}{n}}$$
in the formula
$$ \overline{X} \pm z_{(\alpha / 2)} \times SE$$
For the past week I have been cramming into my head that for confidence intervals of $100(1-\alpha)\%$ we use the following formula
$$ \overline{X} \pm z_{(\alpha / 2)}\frac{\sigma}{\sqrt{n}}~~~ \therefore ~~~ SE = \frac{\sigma}{\sqrt{n}}$$
From looking at the answer from this derivation of SE for Binomials my assumption is that $k = n~~ \therefore ~~\sigma_{\overline{X}} = \sqrt{p(1-p)}$
How would one infer $k = n$ from the following question?
For a 90% confidence interval for the population proportion, p, if the sample proportion, p', is 0.4 and the sample size is n = 100 then the error term, E, is ______ (to the nearest 0.001).