Rabi oscillations and Ramsey-type pulses in ultracold bosons: Role of interactions