To get the number of different ways for the students to line up, we are going to find the factorial of the number of students as seen below:
[tex]\begin{gathered} 5!=5\times4\times3\times2\times1 \\ =120 \end{gathered}[/tex]Hence, the 5 students can be lined up in 120 different ways.