Step 1: Nature of BeO
Beryllium oxide is amphoteric, unlike the basic oxides of other alkaline earth metals.
Step 2: Check each option
Reaction with acid gives the chloride $\text{BeCl}_2$. Reaction with alkali gives a beryllate where Be is in the +2 state, $\text{Na}_2\text{BeO}_2$, so $\text{Na}_2\text{BeO}_4$ is not possible.
Step 3: Conclusion
Only the last option has $\text{BeCl}_2$ and $\text{Na}_2\text{BeO}_2$ in that order.
Final Answer:
Amphoteric BeO gives $\text{BeCl}_2$ with HCl and $\text{Na}_2\text{BeO}_2$ with NaOH.
\[ \boxed{\text{(D) }\text{BeCl}_2 \text{ and } \text{Na}_2\text{BeO}_2} \]