Mass of NaOH dissolved is:
\[
4\text{ g}.
\]
Molar mass of NaOH is:
\[
40\text{ g mol}^{-1}.
\]
Number of moles of NaOH:
\[
\text{Moles}=\frac{4}{40}.
\]
\[
=0.1\text{ mol}.
\]
Volume of solution is:
\[
1.0\text{ L}.
\]
Molarity of NaOH:
\[
M=\frac{0.1}{1.0}=0.1M.
\]
NaOH is a strong base, so it dissociates completely:
\[
NaOH\rightarrow Na^+ + OH^-.
\]
Thus,
\[
[OH^-]=0.1=10^{-1}.
\]
Now,
\[
pOH=-\log[OH^-].
\]
\[
pOH=-\log(10^{-1})=1.
\]
We know:
\[
pH+pOH=14.
\]
Therefore,
\[
pH=14-1.
\]
\[
pH=13.
\]
Hence, the pH of solution is:
\[
13.
\]