Step 1 :This question is about understanding the placement of positive and negative numbers on a number line. On a number line, numbers increase as you move to the right and decrease as you move to the left. Therefore, -40 should be on the left, 0 in the middle, and 40 on the right.
Step 2 :The correct answer is \(\boxed{\text{D. -40 on the left end, 0 in the middle, and 40 on the right end}}\).