Ответ:

  1. Negative: I did not go to Cartagena last holiday.

    Question: Did I go to Cartagena last holiday?

  2. Negative: She did not write a beautiful poem.

    Question: Did she write a beautiful poem?

After did or did not, the main verb takes its base form.