Past perfect :
Had you completed the task? - Yes / No (I had completed the task / I hadn’t completed the task).
Past simple:
Did he go outside yesterday? - No, he didn’t.
Past perfect :
Had you completed the task? - Yes / No (I had completed the task / I hadn’t completed the task).
Past simple:
Did he go outside yesterday? - No, he didn’t.