The reaction equation is NaOH (s) + HNO3 (aq) => NaNO3 (aq) + H2O (l)
The original amount of HNO3 is 1.0 L * 0.48 mol/L = 0.48 mol. Since the coefficients in the reaction are equal for NaOH and HNO3, the amount of acid neutralized is equal 0.11 mol in the first case. The remaining amount of acid will be 0.37 mol. Since HNO3 is a strong acid, the concentration of hydronium will be 0.37 M, too.
pH = - log(0.37) = 0.43.
In the second case all nitric acid will be neutralized and there will be 0.89 - 0.48 = 0.39 mol of NaOH left.
Sodium hydroxide is a strong base, so the concentration of [OH-] will be also 0.39.