How do you know when your battery is dead?

My car just died at the stop lights & i want to know if its the batt or the altenator.
3 answers 3