If the input is '3 1 4 2', what will be the output after sorting the numbers in ascending order?

Answer: A. 1 2 3 4
The numbers are sorted in ascending order: 1, 2, 3, 4.