When an ideal conductor is connected to the terminals of a battery of 5V, the potential difference between the two terminals becomes
zero
An ideal conductor has zero resistance therefore infinite current flows from the battery and battery gets discharged. Hence, the potential difference becomes zero between the terminals of the cell.