Which of these is incorrectly matched?
HNO3 - acid
Mg(OH)2 - base
NH3 - acid
NH4OH - base
HNO3 is an acid as it can donate protons in water. Mg(OH)2 and NH4OH are bases because they can form OH− ions in water.
NH3 is a base because it can accept protons in water, thus forming NH4+ ion.